Re: [Rails] Records created while tests are running are not being saved.

2010-03-18 Thread Steven Hilton
On Thu, Mar 18, 2010 at 6:08 AM, Vikrant Chaudhary wrote: > In following code - > > require "test_helper" > Class SomeControllerTest < ActionController::TestCase > >  def test_something >    record = SomeModel.create :name => 'test' >    record.save! >    gets >  end > > end > > Above record is no

[Rails] Re: escaping [ ]

2009-05-27 Thread Steven Hilton
t_tag() and get what you expect with: <%= content_tag(:label, "Password", {:for => 'user_session[password]', :class => "menulogin"}) %> -- Steven Hilton --~--~-~--~~~---~--~~ You received this message because y

[Rails] Re: slow tests on large rails app

2009-05-27 Thread Steven Hilton
one test or or test file to work in a rapid-feedback way, and after your code works and your tests pass, you run the full test suite before committing to see if you broke anything elsewhere in the code base. -- Steven Hilton --~--~-~--~~~---~--~~ You received th

[Rails] Rails page caching with separately cached global elements.

2009-05-24 Thread Steven Hilton
to support file tests or some similar workaround that I've found I *could* (and may) use a javascript layering approach on the client side, but then the content in the global elements would not be visible to spiders used to build search indexes, which

[Rails] Re: multiple columns primary key

2009-03-09 Thread Steven Hilton
s called (never used it > myself) but you might be able to track it down. > > Fred > >> 1) modify TABLE 1 (add field id as primary key and define A,B,C,D as >> unique) and TABLE 2 (column A reference to field id of TABLE 1) >> 2) I use DB web interface only read

[Rails] Plugin Announce: active_record_random_find (finding random models with ActiveRecord)

2009-03-07 Thread Steven Hilton
://foobarosa.blogspot.com/2009/03/how-to-find-random-model-in-database.html -- Steven Hilton --~--~-~--~~~---~--~~ 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 rubyon