<%= form_for @user, :html => {:multipart => true} do |f| %> <p> <label>My Avatar URL:</label> <%= image_tag(@user.avatar_url) if @user.avatar? %> <%= f.text_field :remote_avatar_url %> </p> <% end %>
--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5d0eee57-fa44-4a34-b692-ee394733e2fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| 28- @user = User.new(user_params) |
| def user_params | |
| params.require(:user).permit(:username, :name, :email, :password, :password_confirmation, :age, :gender, :avatar) | |
| end |
--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAWm7QCuSLt_N5iwOqLORkWt_hRvOzbZ5rE_LwxRdg4%2Bg%40mail.gmail.com.