Skip to content
Browse files

controlador wizard creado

  • Loading branch information...
1 parent 960639c commit 8e95e8890fd35cab990fca9b29a240a1b70c2933 Antonio Pardo committed Oct 31, 2012
View
2 Gemfile
@@ -75,3 +75,5 @@ gem 'will_paginate-bootstrap'
#gem 'canard'
gem 'declarative_authorization'
gem 'prawn'
+
+gem 'wicked'
View
4 Gemfile.lock
@@ -335,6 +335,9 @@ GEM
uuidtools (2.1.3)
warden (1.2.1)
rack (>= 1.0)
+ wicked (0.2.0)
+ activesupport (>= 3.0.7)
+ rails (>= 3.0.7)
will_paginate (3.0.3)
will_paginate-bootstrap (0.2.1)
will_paginate (>= 3.0.3)
@@ -392,6 +395,7 @@ DEPENDENCIES
turn
twitter
uglifier (>= 1.0.3)
+ wicked
will_paginate
will_paginate-bootstrap
yaml_db
View
3 app/assets/javascripts/wizard.js.coffee
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
View
3 app/assets/stylesheets/wizard.css.scss
@@ -0,0 +1,3 @@
+// Place all the styles related to the wizard controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
View
9 app/controllers/wizard_controller.rb
@@ -0,0 +1,9 @@
+class WizardController < ApplicationController
+
+ # para el wizard de creación de campaña
+ include Wicked::Wizard
+
+ def show
+ render_wizard
+ end
+end
View
2 app/helpers/wizard_helper.rb
@@ -0,0 +1,2 @@
+module WizardHelper
+end
View
2 app/views/wizard/show.html.erb
@@ -0,0 +1,2 @@
+<h1>Wizard#show</h1>
+<p>Find me in app/views/wizard/show.html.erb</p>
View
2 config/routes.rb
@@ -8,6 +8,7 @@
resources :sub_oigames, :path => "o" do
resources :campaigns do
+ resources :wizard
member do
post 'petition'
get 'petition'
@@ -62,6 +63,7 @@
end
resources :campaigns do
+ resources :wizard
member do
post 'petition'
get 'petition'
View
9 test/functional/wizard_controller_test.rb
@@ -0,0 +1,9 @@
+require 'test_helper'
+
+class WizardControllerTest < ActionController::TestCase
+ test "should get show" do
+ get :show
+ assert_response :success
+ end
+
+end
View
4 test/unit/helpers/wizard_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class WizardHelperTest < ActionView::TestCase
+end

0 comments on commit 8e95e88

Please sign in to comment.
Something went wrong with that request. Please try again.