once again rails guides for the rescue http://guides.rubyonrails.org/form_helpers.html
chapter 1.2 Multiple Hashes in Form Helper Calls "As with the link_to helper, the path argument doesn’t have to be given a string; it can be a hash of URL parameters recognizable by Rails’ routing mechanism, which will turn the hash into a validURL. However, since both arguments to form_tag are hashes, you can easily run into a problem if you would like to specify both. For instance, let’s say you write this:" "Here, method and class are appended to the query string of the generated URL because you even though you mean to write two hashes, you really only specified one. So you need to tell Ruby which is which by delimiting the first hash (or both) with curly brackets. This will generate the HTMLyou expect:" On Saturday, 9 March 2013 15:13:58 UTC+1, Barry wrote: > > Thaanks! finally works. > > After an hours I tried to set up this quite hard stuff, it just working > looks like a magic +) > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/yOlo2Pfz9ZIJ. For more options, visit https://groups.google.com/groups/opt_out.

