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 trialNikola Novakovic
4,171 PointsCan 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 :)
1 Answer
Justin Geronimo
3,531 PointsHey 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
4,171 PointsThanks a lot the mistake was so obvious. Looks like late night programming took its prize :)
Justin Geronimo
3,531 PointsJustin Geronimo
3,531 PointsNp! It happens to all of us.