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 ActiveRecord Basics Migrations and Relationships Single Table Inheritance

Nikola Novakovic
Nikola Novakovic
4,171 Points

Can not find rename table method

Hello!

While doing this course on ActiveRecords which is awesome by the way , I stumbled up on an error when trying to use a method rename_table.

Screenshoot with an error and code here: http://screencast.com/t/xc2MaEs4D

Any help would be really appreciated Jason Seifer or Hampton Paulk or anyone else :)

Justin Geronimo
Justin Geronimo
3,531 Points

Np! It happens to all of us.

1 Answer

Justin Geronimo
Justin Geronimo
3,531 Points

Hey Nikola,

I think your problem is a typo on line 3, you typed "raname_table", just change it to "rename_table". Check out this link for the proper syntax http://apidock.com/rails/ActiveRecord/ConnectionAdapters/SchemaStatements/rename_table

Nikola Novakovic
Nikola Novakovic
4,171 Points

Thanks a lot the mistake was so obvious. Looks like late night programming took its prize :)