diff --git a/app/controllers/user_followings_controller.rb b/app/controllers/user_followings_controller.rb index ad3a8889..77406900 100644 --- a/app/controllers/user_followings_controller.rb +++ b/app/controllers/user_followings_controller.rb @@ -21,7 +21,7 @@ class UserFollowingsController < ApplicationController # POST /user_followings def create - user = User.find_by(id: params[:followed_user_id]) + user = User.find_by(id: user_following_params.fetch(:followed_user_id)) return unless user.present? return if user_signed_in? && current_user.blocked_by?(user) diff --git a/app/views/page_collections/explore.html.erb b/app/views/page_collections/explore.html.erb index 3a9a3f21..e16fa61d 100644 --- a/app/views/page_collections/explore.html.erb +++ b/app/views/page_collections/explore.html.erb @@ -110,5 +110,5 @@ Vehicle -
We're starting with a few collaborative collections that anyone can submit to and browse. - The ability to create your own collections will be available soon. + The ability to create your own collections will be available for more users soon.
\ No newline at end of file diff --git a/app/views/users/profile/_actions.html.erb b/app/views/users/profile/_actions.html.erb index 54614044..8ca5509c 100644 --- a/app/views/users/profile/_actions.html.erb +++ b/app/views/users/profile/_actions.html.erb @@ -20,7 +20,7 @@ <% else %> <%= form_for UserFollowing.new, method: :post do |f| %> <%= f.hidden_field :followed_user_id, value: @user.id %> - <%= link_to '#', onclick: "$('#new_user_following').submit()", class: 'collection-item blue-text' do %> + <%= link_to '#', onclick: "$('#new_user_following').first().submit()", class: 'collection-item blue-text' do %> Follow this user <%= User.icon %>