search for: deprecated_status

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

2007 Nov 28
6
Broken edge
Hi all, Not sure if I''m the only one with this problem... We''re on edge for both rails and rspec, and i just did an update... Some apparently innocuous rails stuff was updated, and then half my specs broke due to an error in rspec_on_rails: ArgumentError in ''UserController without logged in user should show the index page'' wrong number of arguments (2
2006 Aug 24
0
apache2.2 mod_proxy, mongrel, and my poor rails code
...y + mongrel + rails users: If you have a line like this in your source (because you''ve done a poor job maintaining your code and reading the API docs): render ''foo'', :layout => ''bar'' You might expect it to do what it says... but it actually sets deprecated_status and ends up setting "Status: layoutbar" as a header. This wouldn''t be a problem other than an RFC violation, if Apache didn''t pick up on it and deliver anything with an invalid Status header as text/plain (as it should). But it does it without warning (as it shou...
2006 Feb 14
22
Teaching Models to Render Themselves in the Controller
I am trying to teach my models how to render themselves, i.e. <%= my_model_object.render() %> Let me explain my reasoning and proposed method before this gets shot down as anti-MVC. Let''s say I am writing a contact-management application. I have a class Contact. I will need to display this class all over the application. My first choice is to use a partial. Now I can