Skip to content

Commit

Permalink
Add steps to start rails server
Browse files Browse the repository at this point in the history
  • Loading branch information
ishikawa999 committed Oct 8, 2023
1 parent a137bfe commit 6da1025
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _pages/uploads.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ to this line and save it:
<%= form.file_field :picture %>
{% endhighlight %}

Run `rails server`.

In your browser open <http://localhost:3000/ideas/new>. Your "New idea" form will now show a different element on the page for the "Picture" field. Instead of a text field a file chooser is visible, recognizable by either a "Browse..." or "Choose File" button.

Fill in the form to create a new idea, but this time select a picture as well using this new element/button. Any random image you have on your laptop will do, it's just a test.
Expand Down

0 comments on commit 6da1025

Please sign in to comment.