[Rails] Re: Adding associations without commiting to database

2012-11-03 Thread David D.
For that, they use: p.reload and/or p.tags.reload The tag is saved when you save p (provided you have :autosave => true set) That's shown here: http://api.rubyonrails.org/classes/ActiveRecord/AutosaveAssociation.html under the examples. -- Posted via http://www.ruby-forum.com/. -- You rece

[Rails] Re: Can't mass-assign these protected attributes?

2012-05-17 Thread David D.
I have found a solution to this problem (solution is geared for the newest version of rails etc, as of mid May 2012) If you are simply doing early stage development stuff, you do not need the extra feature which blocks mass assignment. The thing is, github was hacked by some dude (whitehat

[Rails] Problem launching WEBrick in Rails

2011-06-21 Thread David D.
Hey everyone, i'm super new to Rails and excited to get going! I'm following the Ruby on Rails Essentials 3 tutorial from Lynda very closely and came across an error at the step when launching WEBrick. MY Setup: I am on OS X. I have installed the MySQL client and ran it from my OS X system prefs.

[Rails] Re: Ruby on Rails IDE

2010-12-04 Thread David D.
I would have to agree that an IDE is a little bit over the top for Ruby and Rails development. When I was developing on a mac, I used Textmate. It has been often described as emacs for mac. Needless to say, on Linux, I use emacs. I use a nice collection of plugins from http://blog.wyeworks.c