RailsCasts Pro episodes are now free!

Learn more or hide this

Jakub Chodorowicz's Profile

GitHub User: chodorowicz

Site: http://www.jakub.chodorowicz.pl/

Comments by Jakub Chodorowicz

Avatar

Thanks for that tip. Just to clarify, you need to close this tag in following manner:

<%= BCrypt::Password.create("unencrypted_password")%>
Avatar

boosting a single attribute is simple

text :title, :boost => 2.0```
but how can you boost a block like this one?

text :composition_name do
composition.name
end
```

Avatar

It's placed in lib/tasks/rebuild_token_auth.rake
then you can run it with

rake user:rebuild_auth_token

I've also had to check it out!

Avatar

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...