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

Richard Luick
Richard Luick
10,955 Points

Rails - Generate a Scaffold Issue

Hello, everyone. I am having a minor issue with the generating the scaffold part of the ToDo List project in rails. I made a bit of a typo in the command prompt a named the scaffold "to_dp_list" when I was going for "to_do_list". Minor issue, but it is really bothering me. Is there any way to rename the scaffold without re-doing the whole setup portion? Thank you.

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Richard Luick! There's not really an automated way to do that. You'll have to rename the models, controllers, views, routes, and database column. Sorry about that!

Richard Luick
Richard Luick
10,955 Points

O well... I guess I learned my lesson here. I'll be more careful next time around.