I am using a mysql db and I want to pull some info from the db. I think my problem is that I am trying to get the data from an object that doesn't exist in my MemberController. My code: [code] class MemberController < ApplicationController def index @login = User.find_by_login(params[:l]) flash[:notice] = @login + ", you've logged in successfully" end end [/code]
the table in the db is the User table and it has a column of login. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---