diff options
author | Prem Sichanugrist <s@sikachu.com> | 2012-09-01 20:45:26 -0400 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2012-09-17 15:54:22 -0400 |
commit | 21a0b20e397e1b86336f19983c4ee8c368ef55e7 (patch) | |
tree | 1b97e8a23ab526b665f77437dd00de30ddd784ac /guides/source/action_view_overview.md | |
parent | c89c163a0e7df7b29ba33608742eaba09a058090 (diff) | |
download | rails-21a0b20e397e1b86336f19983c4ee8c368ef55e7.tar.gz rails-21a0b20e397e1b86336f19983c4ee8c368ef55e7.tar.bz2 rails-21a0b20e397e1b86336f19983c4ee8c368ef55e7.zip |
change shell to bash
Diffstat (limited to 'guides/source/action_view_overview.md')
-rw-r--r-- | guides/source/action_view_overview.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md index 08ffb2d389..a4fd80d59c 100644 --- a/guides/source/action_view_overview.md +++ b/guides/source/action_view_overview.md @@ -27,7 +27,7 @@ For each controller there is an associated directory in the `app/views` director Let's take a look at what Rails does by default when creating a new resource using the scaffold generator: -```shell +```bash $ rails generate scaffold post [...] invoke scaffold_controller @@ -53,7 +53,7 @@ Action View works well with Action Record, but it can also be used with other Ru Let's start by ensuring that you have the Action Pack and Rack gems installed: -```shell +```bash $ gem install actionpack $ gem install rack ``` @@ -75,7 +75,7 @@ Rack::Handler::Mongrel.run method(:hello_world), :Port => 4567 We can see this all come together by starting up the application and then visiting +http://localhost:4567/+ -```shell +```bash $ ruby hello_world.rb ``` @@ -87,7 +87,7 @@ Action View can also be used with "Sinatra":http://www.sinatrarb.com/ in the sam Let's start by ensuring that you have the Action Pack and Sinatra gems installed: -```shell +```bash $ gem install actionpack $ gem install sinatra ``` @@ -107,7 +107,7 @@ end Then, we can run the application: -```shell +```bash $ ruby hello_world.rb ``` |