Displaying 5 results from an estimated 5 matches for "register_alias".
2008 May 15
8
facebooker, respond_to and firefox 3 beta5/pre
Hi there,
I have a controller that responds to fbml and html, with html at the
top.
In all browsers, this works as expected - When I''m hitting the
controller from my normal app, I get html. When I hit it inside
facebook, I get fbml.
However, with Firefox 3 hitting the normal app, I''m getting fbml for
some odd reason.
Am I crazy?
Sudara
2009 Apr 03
7
RJS not rendering correctly when mime-type is 'iphone'
...This happens instead:
ActionView::MissingTemplate (Missing template controller_name/
update.erb in view path app/views)
The rjs works fine when viewing the site normally, and it worked when
viewing the iPhone version prior to upgrading Rails to 2.3.2.
Additional info: I have ''Mime::Type.register_alias "text/
html", :iphone'' in mime_types.rb and the respond_to block in the
action is what''d you expect --
respond_to do |format|
format.js
end
What could be the problem? Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you...
2007 Dec 12
0
layouts in Rails 2
i''m having a little problem coming up with a dry way to use a layout
for multiple content types
i am using Mime::Type.register_alias ''text/html'', :openid
in my layouts folder i had application.html.erb, so i changed it to
just be application.erb. that works for html requests, but anything
marked as openid doesn''t display the layout at all. for now, i am
having to duplicate the layout and have applicat...
2011 May 21
4
request.format = :mobile causes error "undefined method `ref' for nil:NilClass"
I have a strange problem with setting request.format = :mobile
I can reproduce this problem on a completely fresh Rails 3.0.7 app
with no special gems. This seemed to work well in Rails 2 but for some
reason is hiccuping here, not sure what''s different in Rails 3 that
makes this hiccup. If you look at the stack track, it doesn''t even
pass through my app stack once -- weird --
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server