Thanks -- didn't seem to work. I can reproduce this easily on a fresh Rails 
3.0.7 app with no gems installed, and the error is buried deep inside of 
ActiveScaffold so I thought this was the right list. However, I will follow-up 
with a complete stacktrace and also code on the general list, thanks.

-Jason


On May 21, 2011, at 3:54 AM, Ben Langfeld wrote:

> This does indeed still work, though you should use home.mobile.haml. If that 
> doesn't work, I'd suggest posting a full stack trace and code to a more 
> appropriate list (http://groups.google.com/group/rubyonrails-talk) since this 
> one is for core issues.
> 
> Regards,
> Ben Langfeld
> 
> 
> On Sat, May 21, 2011 at 2:38 AM, Jason Fleetwood-Boldt <[email protected]> 
> wrote:
> I'm just trying to set the request format by detecting a mobile user agent.
> 
> This used to work in Rails 2:
> 
> request.format = :mobile
> 
> Just trying to make it render with a "mobile" format
> 
> home.mobile.html.haml
> 
> For some reason this causes "undefined method `ref' for nil:NilClass" 
> somewhere deep inside activesupport --- is this no longer the way to do this 
> in Rails 3? (I'm on 3.0.5)
> 
> Thanks,
> Jason
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Core" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-core?hl=en.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Core" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-core?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to