Displaying 3 results from an estimated 3 matches for "prxdl".
Did you mean:
prodl
2006 May 24
1
Best practices: a little pop-quiz on my blog
...s pop-quiz on my blog (more fun than just
writing a post saying "hey did you know...").
Seeing as it''s probably of interest to more than just the three
people (including my wife) that actually read my blog I figured it
would be okay to announce it here.
http://tinyurl.com/prxdl
I''ll post my answers in a followup tomorrow (Wednesday).
Regards,
Trevor
--
Trevor Squires
http://somethinglearned.com
2006 Jun 08
5
update only the join table in a HABTM - how?
I have a photographers app that requires giving access to galleries for
users. in one part, I want to be able to define gallery access for a
user seperate from updating any of the user info. I have this function:
def edit_access
@user = User.find(params[:id])
@user.galleries = Gallery.find(params[:gallery_ids]) if
params[:gallery_ids]
if @user.update_attributes(params[:user])
2006 Jun 05
2
When adding a record in console, a parameter comes in as null even when I set it
In console, I am trying to create a User but the :account_id does not come
in. Console just gives me back :account_id => nil. Obviously I''m trying to
set it though. Silly console...
But, I can set the account_id column in my controller like so:
@user = User.new(params[:user])
@user.account_id = account.id
@user.save
Here''s what I give to the controller:
User.create :name