Displaying 3 results from an estimated 3 matches for "ricktessn".
Did you mean:
ricktessner
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
Hi all,
I feel like I''m missing something really easy and I''m just not seeing
it.
I''m using the restful_authentication plugin and have a User model. Uesr
has_many :things and Thing belongs_to :user.
That''s it.
I did a "script/generate rspec_scaffold thing" to generate all the
necessary bits. The "rake db:migrate" to create the db.
At
2007 Jul 24
4
spec''ing helpers that use controller
Hi all,
I''m in the process of creating rspecs for my helpers. One of the
helpers in app/helpers/application_helper.rb looks like this:
def page_name
@page_name || "Define @page_name in
#{controller.controller_name}::#{controller.action_name}"
end
The rspec is simply:
it "should something" do
page_name
end
2006 Jul 25
2
Model relationship confusion ...
Hi all,
I''m thinking this must be pretty straightforward, but I''m finding
myself kind of going in circles in trying to model a simple "private
messaging" app.
I have two models: user and message
User
has many messages
Message
has a sender (User)
has many recipients (Users)
I''m at a bit of a loss as to how best define the relationships that
occur in