[Rails] coupon

2008-11-23 Thread Russell Norris
http://www.mrcheapstuff.com/categories/electronics/buycom-coupons/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To

[Rails] Re: To all TextMate users that wants to run tests with cmd + r in Rails 2.1 and above.

2008-10-14 Thread Russell Norris
Russell Norris and i agree with this message. RSL On Tue, Oct 14, 2008 at 4:09 AM, August Lilleaas <[EMAIL PROTECTED]>wrote: > > Because the require 'test_helper' at the top of all the tests is > relative now (it used to be something like require '../test_helper'),

[Rails] Re: where's the source to www.tumblr.com? it be Rails?

2008-10-06 Thread Russell Norris
if you look at the template customization code, it's PHP. RSL On Sat, Oct 4, 2008 at 10:29 AM, Phlip <[EMAIL PROTECTED]> wrote: > > Railsters; > > I can't Google for this because I keep hitting all the spinoffs. > > Tx! > > -- > Phlip > > > > > --~--~-~--~~~---~--~

[Rails] Re: Paperclip vs. Attachment_fu

2008-09-19 Thread Russell Norris
paperclip allows you to use s3 buckets. checkout http://dev.thoughtbot.com/paperclip/classes/Paperclip/ClassMethods.html#M04. dunno why it's not more prominently displayed [in the readme or whatever]. gotta say, paperclip is just plain easy to setup. <3 simplicity. disclaimer: i've never used

[Rails] Re: Paginator prob

2008-09-09 Thread Russell Norris
veering off topic... what does "Ferret is nice, until you try to make it run in production." mean exactly? i've seen mention that ferret has problems in production but i don't understand what other use you'd want it for. just to develop an idea but never put into production? agreed on sphinx being

[Rails] Re: Amateur Programmer

2008-09-08 Thread Russell Norris
not sure what @person.quizzes refers to [so this might not apply here] but if it refers to an ActiveRecord association you could use the sum method in ActiveRecord like @person.quizzes.sum(:some_field). link with more details: http://api.rubyonrails.org/classes/ActiveRecord/Calculations/ClassMethod

[Rails] Re: Store test data into the testing database using rspec

2008-09-08 Thread Russell Norris
if you need preexisting values/objects in the database for specific tests, you should either create them in a setup block, create them with a factory method [see things like Factory Girl or Fixture Replacement], or load them via fixtures. if we had more specifics we could give more specific advice.

[Rails] Re: How call distance_of_time_in_words() from controller?

2008-09-08 Thread Russell Norris
You shouldn't really need to call this within a controller. Rails uses a convention called MVC which means that the model, the view, and the controller concerns are all separate to themselves. Here's the wikipedia article on it [http://en.wikipedia.org/wiki/Model-view-controller] and here's an entr

[Rails] Re: Rails Testing Framework lacking documentation

2008-09-06 Thread Russell Norris
paulo, what you're looking for in test::unit is under integration testing. in rspec, it's usually done with stories. controller tests/specs are specifically for one controller. integration testing is designed to test your app as a system rather than in units. hope that helps. RSL On Sat, Sep 6, 2