I created a new action called \"asked\". asked.h开发者_Go百科aml is in views/questions as it should be. I\'ve also added
I have the following partial.It can be called from three different times in a view as follows: <%= render :partial => \"contact_event\",
In Haml, I\'ve been trying to get the following link_to_remote call to work. It\'s called from the /questions/new view.
I have multiple controllers with different actions (no \"Index\" actions). The actions I consider \"default\" actions, are named differently. I want to create default routes for their names and have t
I wanted to create a simple paginated search for my project. I\'m having trouble with my \'advanced search\' page, where I have several textbox inputs that the user would fill with the appropriate dat
I have created a custom action within one of my controllers as follows: # GET /kases/discharge/1 # GET /kases/discharge/1.xml
I have a number of .js files that I would like to be stored in the same directories as their views (they\'re specific to a view - its simply to keep the javascript separate from the view开发者_高级运维
I currently have a routes.rb file that looks like this: map.resources :profiles do |profile| profil开发者_Go百科e.resources :projects, :has_many => :tasks
I know this isn\'t RESTful, but for now, I\'m trying to set up an api/v1 controller.Ideally I would like to call it like this:
In my Rails app I have a fairly standard has_many relationship between two entities. A Foo has zero or more Bars; a Bar belongs to exactly one Foo. Both Foo and Bar are identified by a single integer