search for: action_

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

Did you mean: action
2010 Aug 05
5
asset_host and ActionMailer
After digging through the rails code to figure out why my asset_host wasn''t getting applied to emails, I realized that it''s because the config object in the context of a mailer is config.action_mailer and not config.action_controller. This means you need to set asset host separately for emails, as config.action_mailer.asset_host. Should this be considered a bug? Is it really logical to have them separated like that, or would it make more sense to have a simple config.asset_host ? If it...
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action, for example an .rhtml and a .rjs file to handle the view for the same action? I suspect not, but this makes me wonder if there a way to call the .rjs file from within the .rhtml so the statements within it get executed? Thanks, Andy
2011 Sep 14
1
Hitting 500 status code on invalid UTF-8 byte sequence in params
...really like to do. It is my belief, that trying to fix this in the application realm isn''t worth the effort: it has to be a core fix instead. From what I can see, the problem has been noted in a more recent version of Rails: https://github.com/rails/rails/blob/3-1-stable/actionpack/lib/action_dispatch/http/parameters.rb#L39 # TODO: Validate that the characters are UTF-8. If they aren''t, # you''ll get a weird error down the road, but our form handling # should really prevent that from happening def encode_params(params) That''s exactly wh...