search for: admins_index_path

Displaying 1 result from an estimated 1 matches for "admins_index_path".

2012 Sep 20
4
access controller's object attributes in view page
..."undefined method `name'' for :current_admin:Symbol".. Please help.. Please find my code below Sessions Controller def create admin=Admin.find_by_email(params[:session][:email].downcase) if admin && admin.authenticate(params[:session][:password]) redirect_to(admins_index_path(:current_admin=>admin)) end end In view page of index_admin <%="Hi"%><%=params[:current_admin.name]%> -- 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...