search for: assigns_added

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

2006 Jul 14
7
Using ActionView free style
ActionView is a very useful class, in its own right. But, calling it by itself causes a weird crash, exiting Ruby, without even raising an exception! ruby script/runner "begin; av = ActionView::Base.new; av.render(:inline => ''Hi!''); rescue => e; puts e; end" just crashes Ruby. Same with render(:file => ''template.rhtml'') Why is this?
2006 Mar 14
21
Changing default date format in Rails
I''ve spent all day digging through the rails api and postgres-pr on this, I think it''s time to ask the list. Postgres stores a Date in YYYY-MM-DD format. My users want the dates in MM/DD/YYYY format. Sure, I could explicitly convert it on the app level every place where a date is displayed, but that seemed like a DRY violation. I thought I''d be clever and simply
2006 Jun 16
0
rake spec controller test output hideus.
...;user"}>>, @response=#<ActionController::TestResponse:0x24d6880 ...>, @performed_redirect=false, @request_origin="0.0.0.0 at 2006-06-16 16:23:36", @rendering_runtime=0.0270800590515137, @variables_added=true, @template=#<#<Class:0x251ee78>:0x24d4f80 ...>>, @assigns_added=true>> should not be success ./spec/controllers/user_controller_spec.rb:31:in `should not allow new users without the correct fields'' /opt/local/lib/ruby/gems/1.8/gems/rspec_generator-0.5.9/lib/rspec_on_rails.rb:33:in `run'' /opt/local/lib/ruby/gems/1.8/gems/rspec_generator-0...