search for: index_admin

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

2012 Sep 20
4
access controller's object attributes in view page
...ease 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3Mbo...