added Haml, resourceful routes
This commit is contained in:
parent
2d81334803
commit
f3d6e1e855
3
Gemfile
3
Gemfile
|
@ -13,7 +13,8 @@ gem 'uglifier', '>= 1.3.0'
|
||||||
gem 'coffee-rails', '~> 4.1.0'
|
gem 'coffee-rails', '~> 4.1.0'
|
||||||
# See https://github.com/rails/execjs#readme for more supported runtimes
|
# See https://github.com/rails/execjs#readme for more supported runtimes
|
||||||
# gem 'therubyracer', platforms: :ruby
|
# gem 'therubyracer', platforms: :ruby
|
||||||
|
# Use Haml as the templating library
|
||||||
|
gem 'haml'
|
||||||
# Use jquery as the JavaScript library
|
# Use jquery as the JavaScript library
|
||||||
gem 'jquery-rails'
|
gem 'jquery-rails'
|
||||||
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
||||||
|
|
|
@ -59,6 +59,8 @@ GEM
|
||||||
execjs (2.5.2)
|
execjs (2.5.2)
|
||||||
globalid (0.3.6)
|
globalid (0.3.6)
|
||||||
activesupport (>= 4.1.0)
|
activesupport (>= 4.1.0)
|
||||||
|
haml (4.0.6)
|
||||||
|
tilt
|
||||||
i18n (0.7.0)
|
i18n (0.7.0)
|
||||||
jbuilder (2.3.1)
|
jbuilder (2.3.1)
|
||||||
activesupport (>= 3.0.0, < 5)
|
activesupport (>= 3.0.0, < 5)
|
||||||
|
@ -171,6 +173,7 @@ DEPENDENCIES
|
||||||
autotest
|
autotest
|
||||||
byebug
|
byebug
|
||||||
coffee-rails (~> 4.1.0)
|
coffee-rails (~> 4.1.0)
|
||||||
|
haml
|
||||||
jbuilder (~> 2.0)
|
jbuilder (~> 2.0)
|
||||||
jquery-rails
|
jquery-rails
|
||||||
pg
|
pg
|
||||||
|
|
|
@ -14,6 +14,8 @@ Rails.application.routes.draw do
|
||||||
# Example resource route (maps HTTP verbs to controller actions automatically):
|
# Example resource route (maps HTTP verbs to controller actions automatically):
|
||||||
# resources :products
|
# resources :products
|
||||||
|
|
||||||
|
resources :movies
|
||||||
|
|
||||||
# Example resource route with options:
|
# Example resource route with options:
|
||||||
# resources :products do
|
# resources :products do
|
||||||
# member do
|
# member do
|
||||||
|
|
Loading…
Reference in New Issue