Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Simple Form Problem

I'm getting this error when I try use simple form

undefined method `simple_form_for'

I'm currently on this video

http://teamtreehouse.com/library/programming-2/build-a-simple-version-of-facebook/customizing-forms/installing-simpleform

6 Answers

Jim Hoskins
STAFF
Jim Hoskins
Treehouse Guest Teacher

Have you restarted your rails server after running bundle install after adding it to your gemfile?

Hi Jim,

Yeah that fixed it for me.

I've encountered another problem with the bundler though.

When I try to run bundle install It appears to be referencing ruby 1.9.2 not 1.9.3 so it throws up an error and the bundle command doesn't work.

Any ideas how to fix this?

Thanks

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Can you paste the error that it gives you?

sh.exe": /c/Program Files (x86)/ruby-1.9.2/bin/bundle: "C:/Program: bad interpreter: No such file or directory

Thanks

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Graeme,

That's a strange error I haven't seen before. A quick Google search turned this up:

http://stackoverflow.com/questions/13897825/bundle-command-not-found-windows-x64

Are you running a 64 bit Windows install? If so, can you try the instructions in above link and see if it helps?