[Rails] Re: Problem with Custom Form Builder
Fre: That was a typo. In my actual implementation FormHelper is a module and it doesn't inherit the builtin FormHelper, but includes it. So there was no problem. The problem I was having is with the FormBuilder itself. I beleive there was other code files that were creating the problem. Once I create a new rails app from scratch, everything works fine. Thanks for all the feedback. -Satynos Frederick Cheung wrote: > On May 31, 1:59�am, Saty Nos wrote: >> I don't see where my class is being inherited from module. >> > You've written > > module FormHelper < ActionView::Helpers::FormHelper > end > > which doesn't make any sense - modules can't inherit from anything. > > Fre -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Problem with Custom Form Builder
On May 31, 1:59 am, Saty Nos wrote: > Mauricio: > > Thanks for the reponse. I didn't quite get what you mean by I am making > a module inherit from a class. > > MyAPP - is top level module > MyApp::FormBuilder - is class within my module MyApp and inherits from > builtin rails FormBuilder class > MyApp::FormHelper - is module within my module MyApp. > > I don't see where my class is being inherited from module. > You've written module FormHelper < ActionView::Helpers::FormHelper end which doesn't make any sense - modules can't inherit from anything. Fre > thanks in advance. > -Satynos > > Maurício Linhares wrote: > > You're making a module inherit from a class and this is wrong. > > > Here's an example of building a custom form builder -> > >http://onrails.org/articles/2008/06/13/advanced-rails-studio-custom-f... > > > - > > Maur cio Linhares > >http://alinhavado.wordpress.com/(pt-br) |http://blog.codevader.com/ > > (en) > > > On Sat, May 30, 2009 at 4:42 PM, Saty Nos > > -- > Posted viahttp://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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Problem with Custom Form Builder
Mauricio: Thanks for the reponse. I didn't quite get what you mean by I am making a module inherit from a class. MyAPP - is top level module MyApp::FormBuilder - is class within my module MyApp and inherits from builtin rails FormBuilder class MyApp::FormHelper - is module within my module MyApp. I don't see where my class is being inherited from module. thanks in advance. -Satynos Maurício Linhares wrote: > You're making a module inherit from a class and this is wrong. > > Here's an example of building a custom form builder -> > http://onrails.org/articles/2008/06/13/advanced-rails-studio-custom-form-builder > > - > Maur�cio Linhares > http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ > (en) > > > > On Sat, May 30, 2009 at 4:42 PM, Saty Nos -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Problem with Custom Form Builder
You're making a module inherit from a class and this is wrong. Here's an example of building a custom form builder -> http://onrails.org/articles/2008/06/13/advanced-rails-studio-custom-form-builder - Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Sat, May 30, 2009 at 4:42 PM, Saty Nos wrote: > > Any help is much appreciated. This insight will help me not just for > subclassing built in form builder, but also to get a grasp of what is > allowe and what is not allowed in Rails parlance. > > -Satynos > > -- > 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Problem with Custom Form Builder
Any help is much appreciated. This insight will help me not just for subclassing built in form builder, but also to get a grasp of what is allowe and what is not allowed in Rails parlance. -Satynos -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---