Displaying 1 result from an estimated 1 matches for "fan_control".
Did you mean:
fancontrol
2006 Jul 06
4
has_one, belongs_to - I am just not getting it
...henticate(@user.login,
@user.password)
flash[:message] = "Signup successful"
redirect_to :controller => ''fan'', :action => "new"
else
flash[:warning] = "Signup unsuccessful"
end
end
end
In fan_controller.rb:
def new
@fan = Fan.new
end
def create
@fan = Fan.new(params[:id])
@user.fan << @fan
if @fan.save
flash[:notice] = ''Your Fan Profile was successfully created.''
redirect_to :action => ''list''
else
render :...