RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: chodorowicz
Site: http://www.jakub.chodorowicz.pl/
Thanks for that tip. Just to clarify, you need to close this tag in following manner:
<%= BCrypt::Password.create("unencrypted_password")%>
boosting a single attribute is simple
but how can you boost a block like this one?
text :composition_name do composition.name end ```
It's placed in lib/tasks/rebuild_token_auth.rake then you can run it with
lib/tasks/rebuild_token_auth.rake
rake user:rebuild_auth_token
I've also had to check it out!
If somebody gets stuck on the part when form doesn't generate nested fields <% f.fields_for :questions do |builder| %> then in Rails 3.1 you have to change the tags to <%= %>
<% f.fields_for :questions do |builder| %>
<%= %>
I've wasted hours on that...
Thanks for that tip. Just to clarify, you need to close this tag in following manner:
boosting a single attribute is simple
text :composition_name do
composition.name
end
```
It's placed in
lib/tasks/rebuild_token_auth.rake
then you can run it with
I've also had to check it out!
If somebody gets stuck on the part when form doesn't generate nested fields
<% f.fields_for :questions do |builder| %>
then in Rails 3.1 you have to change the tags to
<%= %>
I've wasted hours on that...