How do I create my first Rails app with rails new?
My client project is on an older Rails, so I want a clean practice app on a current version where I can break things. I read three tutorials and they disagree: one says rails new, one says bundle exec rails new, one starts with bin/rails and never explains the difference.
Cite
Poignant Guide Ruby Q&A, "How do I create my first Rails app with rails new?", https://poignantguide.net/answers/read/how-do-i-create-my-first-rails-app-with-rails-new/, accessed 2026-12-04.This is what I did on Ubuntu, with Ruby from rbenv:
$ ruby -v ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux] $ gem install rails $ rails new store ... run bundle install Bundle complete! 14 Gemfile dependencies, 70 gems now installed. $ cd storeIt printed a very long list of
createlines and then it stopped, so I do not know if it finished. I openedhttp://localhost:3000in the browser and got "This site can't be reached".What am I supposed to run next? Why
bin/railsinside the app but plainrailsoutside? And which Ruby version does a new Rails app need? I want to understand the steps rather than paste a bunch of commands, so I can do it again for the client.
Write something first.
Give people something to work with: at least 30 words on what happened and what you tried.
That is too long. Keep it under 6,000 characters.
Write the question as the title, 15 to 140 characters, no links.
Pick a category.
Add a name (2 to 40 characters, no links).
That email address does not look right.
That was quick. Read the thread, then try again.
The form expired. Reload the page and post again.
Something went wrong with the form. Reload and try again.
Please complete the check and post again.
Limit reached for now. Try again later.
This thread is closed to new replies.
This thread no longer accepts replies.
Something went wrong with the form. Reload and try again.
Post a reply or question first (name and email), then this browser can vote, edit and accept answers.
You cannot vote on your own post.
Only the author (within 30 days) or the forum team can do that.
That email already has an account. Use your sign-in link instead.
New accounts are paused for the moment. Try again later.
That was already posted.