Displaying 3 results from an estimated 3 matches for "convert_options_to_javascript".
2006 May 10
2
session[:return_to] for going back.
Hi,
Is session[:return_to] something Rails maintains to quickly go back to the
previous uri without having to keep track of the action name? Or, do we
have to actually set it in our actions?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060510/7e36a528/attachment.html
2005 Nov 29
0
undefined method `link_to'
...s_helper.rb:
module UsersHelper
alias ink_to_original link_to
alias link_to link_to_permission
def link_to_permission(name, options = {}, html_options = nil,
*parameters_for_method_reference)
if @permission
if html_options
html_options = html_options.stringify_keys
convert_options_to_javascript!(html_options)
tag_options = tag_options(html_options)
else
tag_options = nil
end
url = html_escape(options.is_a?(String) ? options : url_for(options,
*parameters_for_method_reference))
"<a href=\"#{url}\"#{tag_options}>#{name...
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here:
http://wiki.developers.facebook.com/index.php/Facebook_Styles
I included testing and comments. I hope you find it useful.
Curiously, it''s really a small extension of FBML.
Richard
-------------- next part --------------
Index: test/rails_integration_test.rb