My sample app with new look using rails


Hi friends,

Today i finished 5th chapter of Learning rails by example.

Today i used some css codes also.🙂

i deployed my sample app into heroku site. here the link http://strong-sunrise-136.heroku.com/

site view

But finally got a problem, still i didn’t clear the problem, the problem is when i usineg ” rspec spec/” to check the codes, i got this result😦 But all were working very well. i don’t know about this problem. first time i’m facing this problem,

[suresh@mercury final_third_part]$ !rs
rspec spec/
……F………

Failures:

1) UsersController GET ‘new’ should have the right title
Failure/Error: response.should have_selector(“title”,
expected following output to contain a <title>Sign up</title> tag:
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd“>
# ./spec/controllers/users_controller_spec.rb:13:in `block (3 levels) in <top (required)>’

Finished in 0.78985 seconds
16 examples, 1 failure

——————————————————————————————

Updated: Now i got the solution for this problem. I missed to add “render_views” into the “spec/controllers/users_controller_spec.rb ” file

:( 🙂

2 thoughts on “My sample app with new look using rails

  1. Thanks for this post. I had same problem (lack of render views) and I was cursing a lot because of that. I always find myself doing simple mistakes
    Cheers and good luck
    coolphon

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s