NoMethodError in Books#createが解決できません
_id = current_user.id if @book.save flash[:notice] = "You have create ...
656 search resultsShowing 1~20 results
You need to log-in
_id = current_user.id if @book.save flash[:notice] = "You have create ...
_id == current_user.id %> <td><%= link_to "Edit", edit_book_path, ...
t = current_user.created_events.find(params[:id]) Activ
!, except: [:index] def show @user = current_user end def new @
@books = Book.all all @user = current_user render :index
t;/td> <td> <%= @book.body %> </td> <% if @book.user == current ...
b <% if book.favorited_by?(current_user) %> <%= link_to book_favorite ...
ror (undefined local variable or method `user' for #<#<Class:0x00007f49800ca348&g ...
.email %></p> <div class="follow-button"> unless current_user ==
:users get "login" => "users#login_form" post "login" => "user ...
d ②下記のように記載すると、@current_userのIDが取得できずデータベースに保存されませんでした。 app/channels/tim
ing head :no_content Completed 204 No Content in 95ms (ActiveRecord: ...
.rb def line_model if current_model_user current_model_user current_model_
_user: current_user end end #message_channel.js import consum
s/users_controller.rb app/views/layouts/application.html.erb ...
.all @book=Book.new @user=current_user end def show @user=
> <td> <%= link_to @book.title, book_path(@book) @book.favorited_by(current ...
def index user = current_user render json: user
e(user: current_user).order("#{sort_column} #{sort_direction ...
e(user: current_user).order("#{sort_column} #{sort_direction ...
656 search resultsShowing 1~20 results
Qiita is a knowledge sharing service for engineers.