
RubyonRails お気に入り機能追加について
: 4 5 6 7 8 9 def create micropost = Micropost.find(params[:micropost_id]) current_user ...
105 search resultsShowing 1~20 results
: 4 5 6 7 8 9 def create micropost = Micropost.find(params[:micropost_id]) current_user ...
_micropost) unless self == other_micropost self.favorit
%> 8: <%= form_for(current_user.relationships.build) do |f| ...
#index' get 'login', to: 'sessions#new' post 'login', to: 'sessions#create' de
r before_action :authenticate_user!, except: :index before_action :set_item, o
="follow-button"> class="follow-button"> <% unless current_user ==
#home' get '/login', to: 'sessions#new' post '/login', to: 'sessions#create' de
2つのモデル(dictum_user と gogaku)を関連付けたテストをパスさせたい。 rails入門者です。railsチュートリアルを参考に現在アプリ開発をしていますが ...
t @post_detail = Post Post.find(params[:id]) unless ViewCount.find_by(
-comment"> t; <% unless c.user.blank? %> <img src="<%= "/
:users get "login" => "users#login_form" post "login" => "user ...
#index login GET /login(.:format) sessions#new POST /login(.:format) ...
ent? unless ViewCount.find_by(user_id: @current_user.id, pos ...
troy unless c.user_id == cuirrent_user.id flash[:notice] = <div cla
リンクからパスワード変更フォームに飛ぶという仕組みですが、最後のフォームに飛ぶところでうまくいきません。 前の更新時の認識は勘違いでした。お恥ずかしい。下記のget_user ...
.map {Item.new() } unless self.items.present? end def items_attribut
飛べないようにauthenticate_user!メソッドを使用したのですが、trainerとcliantの2パターンでユーザー 登録を分けているため、例え ...
が存在していないのではという回答しか得られず、Web検索もAppRouterを使用しているので、これらのエラーについての記事が若干少なく、前に進められていません。
arch) return put "見つかりませんでした" unless search Movie.where(['content LIK ...
_image unless profile_image.attached? file_path = Rails.root.join('app/a
105 search resultsShowing 1~20 results
Qiita is a knowledge sharing service for engineers.