Modern Front-End Development for Rails, Second Edition: Chapter 1 setup
@noelrappin Happy to see the 2nd Edition underway with Rails 7!
In section “The Sample Code” it says chapter_01/01
is “probably the best place to start if you are following along”. But:
-
In
nrclient2-code.zip
thechapter_01/01
tree has no models, controllers, views, sample data, etc. If you start from there, you just get the default welcome-to-Rails page. -
Switching to
chapter_01/02
works better; however, thebin/setup
script (and the instructions listed under “The setup script will do the following”) runsrails db:prepare
which doesn’t load the seed data. So on the next page where it says to start the server, and “you’ll see the schedule page with […] a lot of schedule information at the bottom” – it’s actually empty. By runningrails db:seed
I was able to get the sample data.
Popular Prag Prog topics










Other popular topics








Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /opensuse
- /rust
- /kotlin
- /ruby
- /erlang
- /python
- /clojure
- /react
- /quarkus
- /go
- /vapor
- /v
- /react-native
- /wasm
- /security
- /django
- /nodejs
- /centos
- /haskell
- /rails
- /fable
- /gleam
- /js
- /swift
- /deno
- /assemblyscript
- /tailwind
- /laravel
- /symfony
- /phoenix
- /crystal
- /typescript
- /debian
- /adonisjs
- /julia
- /arch-linux
- /svelte
- /spring
- /c-plus-plus
- /flutter
- /preact
- /actix
- /java
- /angular
- /ocaml
- /zig
- /kubuntu
- /scala
- /zotonic
- /vim
- /rocky
- /lisp
- /html
- /keyboards
- /nim
- /vuejs
- /emacs
- /nerves
- /elm