Undefined method 'dom_id'

I am working through the rjs and rest screencast tutorials from
peepcode. In my local development environment I’m running rails 1.2.3.
When I attempt to generate a dom id with dom_id @object I cannot get
past the exception “undefined method ‘dom_id’ etc”. I understand that
simply_helpful is now part of rails core and that I don’t need to
install it as a plugin. Am I missing something simple?

On Jun 2, 2007, at 12:17 PM, Jason wrote:

I am working through the rjs and rest screencast tutorials from
peepcode. In my local development environment I’m running rails
1.2.3.
When I attempt to generate a dom id with dom_id @object I cannot get
past the exception “undefined method ‘dom_id’ etc”. I understand that
simply_helpful is now part of rails core and that I don’t need to
install it as a plugin. Am I missing something simple?

Are you sure that “is now part of” doesn’t refer to Edge? I know
that with 1.2.2, I’ve installed the simply_helpful plugin (which is
so annoyingly simple that it doesn’t even say where it comes from in
its README file).

-Rob

Rob B. http://agileconsultingllc.com
[email protected]

Rob B. wrote:

Are you sure that “is now part of” doesn’t refer to Edge? I know
that with 1.2.2, I’ve installed the simply_helpful plugin (which is
so annoyingly simple that it doesn’t even say where it comes from in
its README file).

Thanks for the reply Rob. Yeah, the move to core only happened a week
ago
(http://dev.rubyonrails.org/browser/plugins/legacy/simply_helpful?rev=6836),
therefore it must be in edge. I made an ass-umption I shouldn’t have
made.

Regardless, when I install simply_helpful as a plugin I still get the
error:

undefined method `dom_id’ for #<#Class:0x46c1930:0x46c1908>

This really shouldn’t be this difficult. Either I’m an idiot or higher
powers are trying to waste hours of my time.

On Jun 2, 2007, at 1:44 PM, Jason wrote:

rev=6836),
powers are trying to waste hours of my time.
You should check to make sure that dom_id is defined in this file:

vendor/plugins/simply_helpful/lib/simply_helpful/record_identifier.rb

If you got a plugin that is sync’d to Rails, it wouldn’t be in both
places.

-Rob

Rob B. http://agileconsultingllc.com
[email protected]

Rob B. wrote:

You should check to make sure that dom_id is defined in this file:

vendor/plugins/simply_helpful/lib/simply_helpful/record_identifier.rb

If you got a plugin that is sync’d to Rails, it wouldn’t be in both
places.

Thanks again for taking the time to respond Rob. The application is
working fine today. Maybe restarting the server after the plugin was
installed would have taken care of the issue in the first place.

Jason,

Did you get any resolution on this? I’m having the same issue.

  • Matthew

Matthew wrote:

Did you get any resolution on this? I’m having the same issue.

Hi, Matthew.

I did get resolution on this issue. I had installed the plugin, but for
some reason the application wasn’t recognizing the fact that it was
installed. I’m not sure what exactly solved the issue for me, but
perhaps it was the fact that I shut down the app and came back to it the
next day (thus restarting the server). Best of luck with your issue.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs