Using CRUD + non-standard URLs


Please take a look at this code:

map.with_options :controller => ‘school’ do |m|
m.school_show ‘e/:id’, :action => ‘show’
map.resources :school
map.connect ‘:controller/:action/:id’

And then I want a school to be shown on URLs like /e/123 and show a
creation form on /school/new and have Symply RESTful handle

Here’s the form code:

<% form_for :school, @school do |f| %>
<%= f.text_field :name %>
<% end %>

And here’s the output:

Isn’t the action supposed to be /school/create ? Do I have to specify it

And another question, does the restful plugin handle creation
automatically or I have to do it in the controller’s create action?


Ivan V.