scottburton11 / Badgeable

Badgeable is an elegant DSL for awarding badges
MIT License
71 stars 13 forks source link

Setup #4

Closed wuzzzzaah closed 10 years ago

wuzzzzaah commented 11 years ago

Hi, I'm a newbie in programming and rails. I have installed the badgeable_active_record gem, did the generate and migrations, i also did the definitions generation. When I try to run rspec or console, it now throws an error, "gems/badgeable-0.5.1/lib/badgeable/railtie.rb:18:in class_eval': undefined methodcount=' for #Class:0x007febd2f99b68 (NoMethodError)"

Is there something that I have missed? I would appreciate any help you can give me. Thanks.

scottburton11 commented 11 years ago

Hey there;

Sorry you're having trouble. It looks like maybe there is a method called '#count=' in your badges.rb file. Could you please post it?

On Feb 28, 2013, at 8:27 PM, wuzzzzaah notifications@github.com wrote:

Hi, I'm a newbie in programming and rails. I have installed the badgeable_active_record gem, did the generate and migrations, i also did the definitions generation. When I try to run rspec or console, it now throws an error, "gems/badgeable-0.5.1/lib/badgeable/railtie.rb:18:in class_eval': undefined methodcount=' for #Class:0x007febd2f99b68 (NoMethodError)"

Is there something that I have missed? I would appreciate any help you can give me. Thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/scottburton11/Badgeable/issues/4 .

wuzzzzaah commented 11 years ago

Yeah. I did copy-paste a draft sample badge block in it. I cleared it out, it doesnt throw the error now. Thanks. What exactly do i put inside the badge.rb file? can you provide a sample badge.rb file, and maybe a sample of how it can be used in a Person model? Thanks again. I apologize for wasting your time. I'm trying to learn as fast as i can.

scottburton11 commented 11 years ago

You're not wasting my time; I'm glad you're learning, and encourage you to keep it up. For a quick example of what goes in a badges.rb file, have a look at the readme. When I get a second I'll post in more detail.

On Feb 28, 2013, at 9:24 PM, wuzzzzaah notifications@github.com wrote:

Yeah. I did copy-paste a draft sample badge block in it. I cleared it out, it doesnt throw the error now. Thanks. What exactly do i put inside the badge.rb file? can you provide a sample badge.rb file, and maybe a sample of how it can be used in a Person model? Thanks again. I apologize for wasting your time. I'm trying to learn as fast as i can.

— Reply to this email directly or view it on GitHubhttps://github.com/scottburton11/Badgeable/issues/4#issuecomment-14273667 .