search for: dinshaw

Displaying 3 results from an estimated 3 matches for "dinshaw".

2006 Jul 23
4
has_many AND has_many :through ?
Hi, I am working on a scheduling app and I have a perpelextion (new word). I am wondering if the problem is my data model I have Users. Users can create Events. Users can be invited to Events created by other Users. So... user.rb class User < ActiveRecord::Base has_many :invitations # invitations to other users'' events has_many :events, :through => :invitations # all events
2006 Jul 07
1
Cronjob / .rb help clearing session table (new to cronjobs)
I just launched my first ROR app and i need to implement the session database cleanup. I am new to cronjobs. I have used one once but it was all copy/paste. I was hoping someone knew of a good tutorial or resource to get started here or might be able to give me a little help. I have seen a lot of posts that reference setting a cron job to clear old sessions but I am not clear on: Can you
2007 Jan 21
0
Functional Test Fails with before filter in application.rb
Hi There, I am trying to write my first tests for a role bassed authentication taken from Rails Recipies. Whenever I add: assert_redirected_to :action => ''login'' I get the following error: NoMethodError: undefined method `first'' for :user:Symbol /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/assertions/response_assertions.rb:72:in