On Mar 31, 4:40 pm, Gautam <[email protected]> wrote:
> Thanks for your kind reply.
> Here is the code of my routes.rb file
> Please suggest corrections, if any...
>

Take a look at 
http://guides.rubyonrails.org/routing.html#adding-more-restful-actions

Fred


>    map.resources :notices
>    map.resources :users, :has_many => :notices
>    map.resource :session
>
>   map.connect ':controller/:action/:id'
>   map.connect ':controller/:action/:id.:format'
>   map.connect '/notices/:id/:abc', :controller => "notices", :action
> => "abc"
>
>   map.root :controller=> 'welcome'
>   map.signup '/signup', :controller => 'users', :action => 'new'
>   map.login '/login', :controller => 'sessions', :action => 'new'
>   map.logout '/logout', :controller => 'sessions', :action =>
> 'destroy'
>   map.create '/create', :controller => 'notices', :action => 'new'

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to