Displaying 1 result from an estimated 1 matches for "publilsh".
Did you mean:
publics
2009 Sep 24
4
Action Controller ::MethodNotAllowed
...tiple actions for a form to create
new record. The actions for the form are cancel, save, publish and
preview.
here''s the config/routes.rb file code snippet for the relevant
controller - Events
map.resources :events, :member => {:manage => :get}, :new => {:preview
=> :post, :publilsh => :post}
The EventsController has functions for new, create, edit, update,
manage, preview and publish.
the new.html.erb snippet is
<% form_for @event, :url => events_path, :html => {:multipart =>
true, :id => "event_form"} do |f| -%>
<%= render :partial =>...