u need to do this form_for(:mode, :url => {:action => "action_name", :controller => "controller_name"}) and in the routes file, u need to add post "static_pages/main" "contoller_name#action_name"
On Sat, Jun 23, 2012 at 4:32 AM, cyber c. <li...@ruby-forum.com> wrote: > I can specify the controller using > :url => {:action => 'XYZ'} > But since I don't have ( nor need) a model file for the form , so what > should i write here "?" > <%= form_for (?) do |f| %> > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Thanks, Aash -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.