Ruby on Rails Saturday, May 4, 2013

On 4 May 2013 18:37, rihad <rihad@mail.ru> wrote:
> Hi. I'm trying to run Getting started tutorial under Rails 4.0.0.beta1
> although it assumes it runs on Rails 3. I was able to get rid of all
> errors by wrapping post_params here and there, and installing
> protected_attributes Gem for attr_accessible to make sense. Post/
> comment CRUD works just fine, but I don't seem to be able to add Tags
> (the final part of the tutorial). Post saved successfully message
> appears, but tags aren't saved as part of saving the post. Database
> isn't even UPDATEd unless I change either name, title or content, but
> tags aren't persisted in any case. What gives?

You would be better to stick to Rails 3 (with a Rails 3 tutorial)
until you have mastered the basics of Rails and know how to debug your
code. If you really must go with Rails 4 then railstutorial.org have
a beta tutorial at
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=4.0#top

Using a tutorial aimed at a different version of Rails to that which
you are using is a doomed enterprise.

Colin

>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment