-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第135回 がく みなみや ゆかお #1433
Comments
hi 😄 |
💪 |
2.2 Usersリソースから |
演習2 |
演習3 |
おぅよ。 |
ほげほげ〜!!!!! |
演習1 |
上記まで↑ |
toy_app/app/controllers/microposts_controller.rb 29行目から respond_to do |format|
if @micropost.save
format.html { redirect_to @micropost, notice: 'Micropost was successfully created.' }
format.json { render :show, status: :created, location: @micropost }
else
format.html { render :new }
format.json { render json: @micropost.errors, status: :unprocessable_entity }
end
end toy_app/app/views/microposts/show.html.erb 1行目 <p id="notice"><%= notice %></p> createでnoticeに渡した文字列がviewの |
No description provided.
The text was updated successfully, but these errors were encountered: