Displaying 4 results from an estimated 4 matches for "signupcontroller".
2007 Sep 07
2
My controller became fat trying to handle multiple models - need guidance please
Hello all.
I am experiencing something that has to be fairly common in the rails
world, but I haven''t found a clean solution yet.
I have a SignupController that handles multiple models in a single
form.
Those models are User, UserProfile, CreditCard, Subscription, and
Order.
When the form is filled out and posted, I want to do exactly what I
would do if the form was only for a single model:
(1) Build the object from params[:model]
(2) Save the object,...
2006 Jul 15
1
Redirect_to from initialize method
Hello, I''m curious as to why this bit of code doesn''t work:
--
class SignupController < ApplicationController
def initialize
signup.call
end
def signup
redirect_to :action => "signup_form"
end
end
--
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.rewrite
--
Whereas if I comment the signup.call a...
2006 Apr 18
7
Functional test, pls help!!!!
Hi guys, recently encountered this funny problem which i really dunno
wat happen...
I have been trying on it for the past few days and just doesnt work.Hope
you guys can give me some enlightenment.
Problem:
The functional test doesnt seems to be able to recognise one of my
model, and when i run the test, it keeps giving me the error of"You have
nil object when you don''t expect
2006 Apr 14
5
state_models plugin and file_column?
I was looking at Kyle Mawell''s extremely nifty-looking StateModels
plugin
http://www.kylemaxwell.com/articles/2006/02/06/fun-with-single-table-inheritance
and before I go down the road with it, I was wondering if anyone has
used it with file_column.
The way file_column deals with an uploaded file -- by storing it to the
filesystem in a path that employs the model name and id --