I did the install, followed the instructions and now getting a nil error: eval):1:in `fckeditor_textarea'': You have a nil object when you didn''t expect it! The error occured while evaluating nil.full_description I put the <%= javascript_include_tag "fckeditor/fckeditor" %> in the layout , and then also tried it in the rhtml file where editor is to go. Here is my code: <%= fckeditor_textarea("position", "full_description", :toolbarKit => ''Simple'', :width => ''400'', :height => ''200'') %> position is the model and full_description is the method / column. TIA Stuart --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
> eval):1:in `fckeditor_textarea'': You have a nil object when you didn''t > expect it! > The error occured while evaluating nil.full_description> Here is my code: > > <%= fckeditor_textarea("position", "full_description", :toolbarKit => > ''Simple'', :width => ''400'', :height => ''200'') %> > > position is the model and full_description is the method / column.Looks like you model object may be nil. Just to be sure it''s the plugin causing the problem, does a regular textarea work? <%= textarea("position", "full_description", :width => ''400'', :height => ''200'') %> -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
> <%= textarea("position", "full_description", :width => ''400'', :height => > ''200'') %>Oops. I just copied over the width and height, but those options should really rows and cols. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I tried textarea and that gave me an error "undefined textarea" So actually it''s text_area, that works fine, either with w & h or rows and cols. However fckeditor_textarea returns a nil error still ? "nil.full_description" Stuart On 8/31/06, Curtis Summers <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > <%= textarea("position", "full_description", :width => ''400'', :height => > > ''200'') %> > > Oops. I just copied over the width and height, but those options should > really rows and cols. > > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
This happens because you need to define a model in whatever action is being called if it isn''t editing an existing one. So if the action is post, then it should look like this def post @position = Position.new() end Scott. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---