Live data from Hacker News

The Ruby on Rails Tutorial, 2nd Edition (full draft)

ruby.railstutorial.org

41–48 of 48 posts

Re: The Ruby on Rails Tutorial, 2nd Edition (full draft)

#41
post #38

Earlier quoted context omitted.

Which SASS port do you prefer ? https://github.com/thomas-mcdonald/bootstrap-sass or https://github.com/yabawock/bootstrap-sass-rails Thanks in advance!

bootstrap-sass most definitely. Support for Bootstrap 2.0 was included very quickly (there was a development branch even before the main release)

thanks!

Re: The Ruby on Rails Tutorial, 2nd Edition (full draft)

#43

So far really liking the tutorial. Just one thing, as a rails newbie, could you expand a little more on the deploying part of section 1, specifically giving an example of deploying NOT using heroku. It's just I want to be deploying to just a generic server running rails and I want to know how the process is different. I know you have to set the ENV to production but at what stage of the process does this happen etc..…

I second that. Capistrano does have a very comprehensive run down of how that all works but for the beginner I can see them getting lost with those. Most Rails tutorials I've seen either tell you to deploy to Heroku or if they don't they don't cover deployment to your own server so much, it usually feels like a quick skim.

Re: The Ruby on Rails Tutorial, 2nd Edition (full draft)

#45
post #2

This draft includes previously unpublished versions of Chapter 10, "User microposts", and Chapter 11, "Following users". The original announcement is here: http://news.railstutorial.org/a-full-draft-of-the-ruby-on-ra... This is a full draft, but it's not yet complete. In particular, I'm considering replacing Blueprint CSS with Bootstrap for the final version. Please let me know what you think.

Hello, I also started rails by reading your tutorial. I have a question, this post http://stackoverflow.com/a/5612941 suggests that the way to model a friendship is to duplicate rows in a transaction and it cites a book you wrote.

Is this still the way to go? I like the idea of duplicating rows because it simplifies the associations a lot, but I've been warned against it. Is that the way you would do it?

Thanks.

Re: The Ruby on Rails Tutorial, 2nd Edition (full draft)

#47
post #32

Not sure if you are aware of this...for the first edition of your tutorial, webrat is required for many of the tests (I tested on ubuntu/windows), but inclusion of webrat will actually break some of the new tests (like those using have_selector) in the second edition. You might want to add a warning to those who have followed the first edition and are trying to incorporate the additions in the second edition.

The 2nd edition explicitly uses Capybara instead of Webrat. As long as people pay attention to their Gemfiles, they should be fine.

It would be nice if you can discuss the differences, like how Capybara is meant for integration tests, and replacement for have_template etc. At some sections the tests are still referred to controller tests (Listing 10.46) although it looks like you intend to convert them all to integration tests.

Re: The Ruby on Rails Tutorial, 2nd Edition (full draft)

#48
post #32

Earlier quoted context omitted.

The 2nd edition explicitly uses Capybara instead of Webrat. As long as people pay attention to their Gemfiles, they should be fine.

It would be nice if you can discuss the differences, like how Capybara is meant for integration tests, and replacement for have_template etc. At some sections the tests are still referred to controller tests (Listing 10.46) although it looks like you intend to convert them all to integration tests.

Also, 11.37 tests do not work with valid_sign_in (using session authentication), but works with the controller.sign_in method introduced in 1e.
Post reply on HN