if am trying to pass a parameter 开发者_StackOverflowthrough a link and assign it to a specific model. here is the code i\'m working with:
I\'m still a beginner at web development.It\'s not my profession.So go easy. I started building a rails app today, and realized it would make my application so much better if I could get certain link
I have a standard delete link, and want to add a parameter to it: <%= link_to \"Delete\", item, :confirm => \'Are you sure?\', :method => :delete, :foo => 1 %>
I am new to ROR and am trying to pass two variables from two fields in a view to a controller to generate a dataset for an excel export.The excel export works, however all I get are headers and no dat
I have a list of \'notes\', and each note has some tags via acts_as_taggable_on. It\'s a great plugin, and the tags are working wonderfully.
Hi :) I\'m new to haml and wa开发者_C百科nt something like this: %h1 =link_to \"Home\" :root How could I realize this? Hope you can help me with this :)Try this:
NEW EDITING With resources :cases in the routes.rb all these routing helpers work as expected (c is an instance of the model Case):
Noob with some help needed.I am creating a chore chart for my children which should look like a online version of:
Error: No route matches {:action=>\"new\", :controller=>\"comments\", :parent_id=>1} routes.rb:
Essentially I\'m dealing with 3 things: (*the first 2 work) An Action called Index(), which accepts a user_id parameter.