Quantcast
Channel: Recent Posts in 'Chapter 11, Task F, #{@user.name} not working in flash notice' | Pragmatic Forums
Browsing all 2 articles
Browse latest View live

Chapter 11, Task F, #{@user.name} not working in flash notice posted by Lee...

Hi, I can’t seem to get the #{@user.name} that was added to depot_p/app/controllers/users_controller.rb to work. Everything else works just fine I can add new users, but when I add a new user instead...

View Article



Chapter 11, Task F, #{@user.name} not working in flash notice posted by Lee...

Ok, I figured this out. Flash notices must be in double quotes, not single quotes. I had flash[:notice] = ‘User #{@user.name} was successfully created.’ when it should have been flash[:notice] = “User...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images