Hello, How do I disable html5 with simple_form gem? I tried to type: SimpleForm.html5 = false in environment.rb But this throws error. undefined method `html5='' for SimpleForm:Module (NoMethodError) Even though I see... module SimpleForm ... mattr_accessor :html5 @@html5 = true ... end Any explanation on this? How I can disable it in any other ways? Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No solutions :(? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Wednesday, May 25, 2011 6:07:24 AM UTC-6, Ruby-Forum.com User wrote:> > No solutions :(? > > > Since this is a SimpleForm specific question, you ought to consider askingit on its own group: http://groups.google.com/group/plataformatec-simpleform If the gem has a bug, you can report it to: https://github.com/plataformatec/simple_form/issues That said, according to the main README of the gem: https://github.com/plataformatec/simple_form (toward the bottom) ...it says you _can_ use: SimpleForm.html5 = false So, that part is correct. However, you should be putting (you''re on rails 3, yes?) your initialization in an initializer file instead of config/environment.rb. I''d try sticking that line in its own file such as: $ cat config/initializers/disable_html5.rb # Disable HTML5 for the SimpleForm gem... SimpleForm.html5 = false -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.