Thursday, April 29, 2010

[Rails] Re: woriking under webrick but not under passenger

It is definitely routing problem.
I could partially solve the problem by adding this:

map.connect 'login', :controller => 'login', :action => "login_page"
map.connect 'login/list_users', :controller => "login", :action =>
"list_users"
map.connect 'login/add_user', :controller => "login", :action =>
"add_user"
map.connect 'login/logout', :controller => "login", :action =>
"logout"

to the routes.rb and just first line is working.
So redirecting to the <app>/login or typing it directly gives login_page
action from the login controller.
The remaining problem is that I still can't use any action directly like
/login/list_users or even /login/login_page.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate