padrino / padrino-recipes

A collection of padrino templates and plugins
http://www.padrinorb.com
292 stars 50 forks source link

blogsample doesn't install properly #50

Closed renich closed 11 years ago

renich commented 11 years ago

Hey guys,

As the title states. My OS is: Fedora 18 x86_64 I removed all rubygems provided by fedora and reinstalled ruby. It still installs 3 or so rubygems. The purpose of this was to have a minimal ruby env.

check the output:

[renich@introlapg02org ~]$ gem install padrino
Fetching: tilt-1.3.4.gem (100%)
Fetching: rack-1.5.2.gem (100%)
Fetching: rack-protection-1.4.0.gem (100%)
Fetching: sinatra-1.3.5.gem (100%)
Fetching: url_mount-0.2.1.gem (100%)
Fetching: http_router-0.10.2.gem (100%)
Fetching: thor-0.15.4.gem (100%)
Fetching: i18n-0.6.4.gem (100%)
Fetching: multi_json-1.6.1.gem (100%)
Fetching: activesupport-3.2.12.gem (100%)
Fetching: padrino-core-0.10.7.gem (100%)
Fetching: padrino-helpers-0.10.7.gem (100%)
Fetching: mime-types-1.21.gem (100%)
Fetching: polyglot-0.3.3.gem (100%)
Fetching: treetop-1.4.12.gem (100%)
Fetching: mail-2.3.3.gem (100%)
Fetching: padrino-mailer-0.10.7.gem (100%)
Fetching: bundler-1.3.0.gem (100%)
Fetching: padrino-gen-0.10.7.gem (100%)
Fetching: padrino-cache-0.10.7.gem (100%)
Fetching: padrino-admin-0.10.7.gem (100%)
Fetching: padrino-0.10.7.gem (100%)
Successfully installed tilt-1.3.4
Successfully installed rack-1.5.2
Successfully installed rack-protection-1.4.0
Successfully installed sinatra-1.3.5
Successfully installed url_mount-0.2.1
Successfully installed http_router-0.10.2
Successfully installed thor-0.15.4
Successfully installed i18n-0.6.4
Successfully installed multi_json-1.6.1
Successfully installed activesupport-3.2.12
Successfully installed padrino-core-0.10.7
Successfully installed padrino-helpers-0.10.7
Successfully installed mime-types-1.21
Successfully installed polyglot-0.3.3
Successfully installed treetop-1.4.12
Successfully installed mail-2.3.3
Successfully installed padrino-mailer-0.10.7
Successfully installed bundler-1.3.0
Successfully installed padrino-gen-0.10.7
Successfully installed padrino-cache-0.10.7
Successfully installed padrino-admin-0.10.7
Successfully installed padrino-0.10.7
22 gems installed
Installing ri documentation for tilt-1.3.4...
Installing ri documentation for rack-1.5.2...
Installing ri documentation for rack-protection-1.4.0...
Installing ri documentation for sinatra-1.3.5...
Installing ri documentation for url_mount-0.2.1...
Installing ri documentation for http_router-0.10.2...
Installing ri documentation for thor-0.15.4...
Installing ri documentation for i18n-0.6.4...
Installing ri documentation for multi_json-1.6.1...
Installing ri documentation for activesupport-3.2.12...
Installing ri documentation for padrino-core-0.10.7...
Installing ri documentation for padrino-helpers-0.10.7...
Installing ri documentation for mime-types-1.21...
Installing ri documentation for polyglot-0.3.3...
Installing ri documentation for treetop-1.4.12...
Installing ri documentation for mail-2.3.3...
Installing ri documentation for padrino-mailer-0.10.7...
Installing ri documentation for bundler-1.3.0...
Installing ri documentation for padrino-gen-0.10.7...
Installing ri documentation for padrino-cache-0.10.7...
Installing ri documentation for padrino-admin-0.10.7...
Installing ri documentation for padrino-0.10.7...
Installing RDoc documentation for tilt-1.3.4...
Installing RDoc documentation for rack-1.5.2...
Installing RDoc documentation for rack-protection-1.4.0...
Installing RDoc documentation for sinatra-1.3.5...
Installing RDoc documentation for url_mount-0.2.1...
Installing RDoc documentation for http_router-0.10.2...
Installing RDoc documentation for thor-0.15.4...
Installing RDoc documentation for i18n-0.6.4...
Installing RDoc documentation for multi_json-1.6.1...
Installing RDoc documentation for activesupport-3.2.12...
Installing RDoc documentation for padrino-core-0.10.7...
Installing RDoc documentation for padrino-helpers-0.10.7...
Installing RDoc documentation for mime-types-1.21...
Installing RDoc documentation for polyglot-0.3.3...
Installing RDoc documentation for treetop-1.4.12...
Installing RDoc documentation for mail-2.3.3...
Installing RDoc documentation for padrino-mailer-0.10.7...
Installing RDoc documentation for bundler-1.3.0...
Installing RDoc documentation for padrino-gen-0.10.7...
Installing RDoc documentation for padrino-cache-0.10.7...
Installing RDoc documentation for padrino-admin-0.10.7...
Installing RDoc documentation for padrino-0.10.7...
[renich@introlapg02org ~]$ cd Projects/ruby/padrino/
[renich@introlapg02org padrino]$ padrino g project sample_blog --template sampleblog
       apply  https://github.com/padrino/padrino-recipes/raw/master/templates/sampleblog_template.rb
  => Executing: padrino-gen project sample_blog --bundle=true --orm=activerecord --renderer=haml --script=jquery --stylesheet=sass --test=shoulda -r=/home/renich/Projects/ruby/padrino
      create  
      create  .gitignore
      create  config.ru
      create  config/apps.rb
      create  config/boot.rb
      create  public/favicon.ico
      create  public/images
      create  public/javascripts
      create  public/stylesheets
      create  tmp
      create  .components
      create  app
      create  app/app.rb
      create  app/controllers
      create  app/helpers
      create  app/views
      create  app/views/layouts
      create  Gemfile
    applying  activerecord (orm)...
       apply  orms/activerecord
      insert  Gemfile
      insert  Gemfile
      insert  app/app.rb
      create  config/database.rb
    applying  shoulda (test)...
       apply  tests/shoulda
      insert  Gemfile
      insert  Gemfile
      create  test/test_config.rb
      insert  test/test_config.rb
      create  test/test.rake
    skipping  mock component...
    applying  jquery (script)...
       apply  scripts/jquery
      create  public/javascripts/jquery.js
      create  public/javascripts/jquery-ujs.js
      create  public/javascripts/application.js
    applying  haml (renderer)...
       apply  renderers/haml
      insert  Gemfile
    applying  sass (stylesheet)...
       apply  stylesheets/sass
      insert  Gemfile
      insert  app/app.rb
      create  lib/sass_init.rb
      create  app/stylesheets
   identical  .components
Bundling application dependencies using bundler...
     run  bundle install from "."
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Installing rake (10.0.3) 
Using i18n (0.6.4) 
Using multi_json (1.6.1) 
Using activesupport (3.2.12) 
Installing builder (3.0.4) 
Installing activemodel (3.2.12) 
Installing arel (3.0.2) 
Installing tzinfo (0.3.35) 
Installing activerecord (3.2.12) 
Installing metaclass (0.0.1) 
Installing mocha (0.10.5) 
Installing bourne (1.1.2) 
Using bundler (1.3.0) 
Using tilt (1.3.4) 
Installing haml (4.0.0) 
Using rack (1.5.2) 
Using url_mount (0.2.1) 
Using http_router (0.10.2) 
Using mime-types (1.21) 
Using polyglot (0.3.3) 
Using treetop (1.4.12) 
Using mail (2.3.3) 
Using rack-protection (1.4.0) 
Using sinatra (1.3.5) 
Using thor (0.15.4) 
Using padrino-core (0.10.7) 
Using padrino-helpers (0.10.7) 
Using padrino-admin (0.10.7) 
Using padrino-cache (0.10.7) 
Using padrino-gen (0.10.7) 
Using padrino-mailer (0.10.7) 
Using padrino (0.10.7) 
Installing rack-test (0.6.2) 
Installing sass (3.2.6) 
Installing shoulda-context (1.0.2) 
Installing shoulda-matchers (1.4.2) 
Installing shoulda (3.3.2) 
Installing sinatra-flash (0.3.0) 
Installing sqlite3 (1.3.7) 

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb 
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h

Gem files will remain installed in /home/renich/.gem/ruby/1.9.1/gems/sqlite3-1.3.7 for inspection.
Results logged to /home/renich/.gem/ruby/1.9.1/gems/sqlite3-1.3.7/ext/sqlite3/gem_make.out

An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.7'` succeeds before bundling.

=================================================================
sample_blog is ready for development!
=================================================================
$ cd /home/renich/Projects/ruby/padrino/sample_blog
=================================================================

      insert    app/app.rb
  => Executing: padrino-gen admin -r=/home/renich/Projects/ruby/padrino/sample_blog
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
=> Executing Rake ar:create ar:migrate seed ...
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
  => Executing: padrino-gen model post title:string body:text -r=/home/renich/Projects/ruby/padrino/sample_blog
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
      insert    db/migrate/002_create_posts.rb
/home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/inject_into_file.rb:99:in `binread': No such file or directory - /home/renich/Projects/ruby/padrino/sample_blog/db/migrate/002_create_posts.rb (Errno::ENOENT)
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/inject_into_file.rb:99:in `replace!'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/inject_into_file.rb:60:in `invoke!'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions.rb:95:in `action'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/inject_into_file.rb:31:in `insert_into_file'
    from https://github.com/padrino/padrino-recipes/raw/master/templates/sampleblog_template.rb:22:in `apply'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions.rb:221:in `instance_eval'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions.rb:221:in `apply'
    from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/lib/padrino-gen/generators/runner.rb:135:in `execute_runner'
    from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/lib/padrino-gen/generators/project.rb:56:in `setup_project'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:27:in `run'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `block in invoke_all'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `each'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `map'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `invoke_all'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/group.rb:238:in `dispatch'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
    from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/lib/padrino-gen/generators/cli.rb:51:in `setup'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:27:in `run'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `block in invoke_all'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `each'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `map'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `invoke_all'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/group.rb:238:in `dispatch'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
    from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/bin/padrino-gen:16:in `<main>'
WaYdotNET commented 11 years ago

you need to install libsqlite3-dev to build sqlite3 gem

WaYdotNET commented 11 years ago

@renich if it works, please close issue :D:D thanks

ujifgc commented 11 years ago

Please, reopen if the issue persists.

renich commented 11 years ago

I did have sqlite-devel installed; as you can see on the following command. Please, check out near the end; where it says that it couldn't find bcrypt-ruby and, later on, it can't find binread... :

[renich@introdeskg02org padrino]$ rpm -q sqlite-devel; echo; gem list; echo; gem install padrino; echo; padrino g project sample_blog --template sampleblog
sqlite-devel-3.7.13-2.fc18.x86_64

*** LOCAL GEMS ***

bigdecimal (1.1.0)
io-console (0.3)
json (1.6.5)
rdoc (3.12)

Fetching: tilt-1.3.4.gem (100%)
Fetching: rack-1.5.2.gem (100%)
Fetching: rack-protection-1.4.0.gem (100%)
Fetching: sinatra-1.3.5.gem (100%)
Fetching: url_mount-0.2.1.gem (100%)
Fetching: http_router-0.10.2.gem (100%)
Fetching: thor-0.15.4.gem (100%)
Fetching: i18n-0.6.4.gem (100%)
Fetching: multi_json-1.6.1.gem (100%)
Fetching: activesupport-3.2.12.gem (100%)
Fetching: padrino-core-0.10.7.gem (100%)
Fetching: padrino-helpers-0.10.7.gem (100%)
Fetching: mime-types-1.21.gem (100%)
Fetching: polyglot-0.3.3.gem (100%)
Fetching: treetop-1.4.12.gem (100%)
Fetching: mail-2.3.3.gem (100%)
Fetching: padrino-mailer-0.10.7.gem (100%)
Fetching: bundler-1.3.1.gem (100%)
Fetching: padrino-gen-0.10.7.gem (100%)
Fetching: padrino-cache-0.10.7.gem (100%)
Fetching: padrino-admin-0.10.7.gem (100%)
Fetching: padrino-0.10.7.gem (100%)
Successfully installed tilt-1.3.4
Successfully installed rack-1.5.2
Successfully installed rack-protection-1.4.0
Successfully installed sinatra-1.3.5
Successfully installed url_mount-0.2.1
Successfully installed http_router-0.10.2
Successfully installed thor-0.15.4
Successfully installed i18n-0.6.4
Successfully installed multi_json-1.6.1
Successfully installed activesupport-3.2.12
Successfully installed padrino-core-0.10.7
Successfully installed padrino-helpers-0.10.7
Successfully installed mime-types-1.21
Successfully installed polyglot-0.3.3
Successfully installed treetop-1.4.12
Successfully installed mail-2.3.3
Successfully installed padrino-mailer-0.10.7
Successfully installed bundler-1.3.1
Successfully installed padrino-gen-0.10.7
Successfully installed padrino-cache-0.10.7
Successfully installed padrino-admin-0.10.7
Successfully installed padrino-0.10.7
22 gems installed
Installing ri documentation for tilt-1.3.4...
Installing ri documentation for rack-1.5.2...
Installing ri documentation for rack-protection-1.4.0...
Installing ri documentation for sinatra-1.3.5...
Installing ri documentation for url_mount-0.2.1...
Installing ri documentation for http_router-0.10.2...
Installing ri documentation for thor-0.15.4...
Installing ri documentation for i18n-0.6.4...
Installing ri documentation for multi_json-1.6.1...
Installing ri documentation for activesupport-3.2.12...
Installing ri documentation for padrino-core-0.10.7...
Installing ri documentation for padrino-helpers-0.10.7...
Installing ri documentation for mime-types-1.21...
Installing ri documentation for polyglot-0.3.3...
Installing ri documentation for treetop-1.4.12...
Installing ri documentation for mail-2.3.3...
Installing ri documentation for padrino-mailer-0.10.7...
Installing ri documentation for bundler-1.3.1...
Installing ri documentation for padrino-gen-0.10.7...
Installing ri documentation for padrino-cache-0.10.7...
Installing ri documentation for padrino-admin-0.10.7...
Installing ri documentation for padrino-0.10.7...
Installing RDoc documentation for tilt-1.3.4...
Installing RDoc documentation for rack-1.5.2...
Installing RDoc documentation for rack-protection-1.4.0...
Installing RDoc documentation for sinatra-1.3.5...
Installing RDoc documentation for url_mount-0.2.1...
Installing RDoc documentation for http_router-0.10.2...
Installing RDoc documentation for thor-0.15.4...
Installing RDoc documentation for i18n-0.6.4...
Installing RDoc documentation for multi_json-1.6.1...
Installing RDoc documentation for activesupport-3.2.12...
Installing RDoc documentation for padrino-core-0.10.7...
Installing RDoc documentation for padrino-helpers-0.10.7...
Installing RDoc documentation for mime-types-1.21...
Installing RDoc documentation for polyglot-0.3.3...
Installing RDoc documentation for treetop-1.4.12...
Installing RDoc documentation for mail-2.3.3...
Installing RDoc documentation for padrino-mailer-0.10.7...
Installing RDoc documentation for bundler-1.3.1...
Installing RDoc documentation for padrino-gen-0.10.7...
Installing RDoc documentation for padrino-cache-0.10.7...
Installing RDoc documentation for padrino-admin-0.10.7...
Installing RDoc documentation for padrino-0.10.7...

       apply  https://github.com/padrino/padrino-recipes/raw/master/templates/sampleblog_template.rb
  => Executing: padrino-gen project sample_blog --bundle=true --orm=activerecord --renderer=haml --script=jquery --stylesheet=sass --test=shoulda -r=/home/renich/Projects/ruby/padrino
      create  
      create  .gitignore
      create  config.ru
      create  config/apps.rb
      create  config/boot.rb
      create  public/favicon.ico
      create  public/images
      create  public/javascripts
      create  public/stylesheets
      create  tmp
      create  .components
      create  app
      create  app/app.rb
      create  app/controllers
      create  app/helpers
      create  app/views
      create  app/views/layouts
      create  Gemfile
    applying  activerecord (orm)...
       apply  orms/activerecord
      insert  Gemfile
      insert  Gemfile
      insert  app/app.rb
      create  config/database.rb
    applying  shoulda (test)...
       apply  tests/shoulda
      insert  Gemfile
      insert  Gemfile
      create  test/test_config.rb
      insert  test/test_config.rb
      create  test/test.rake
    skipping  mock component...
    applying  jquery (script)...
       apply  scripts/jquery
      create  public/javascripts/jquery.js
      create  public/javascripts/jquery-ujs.js
      create  public/javascripts/application.js
    applying  haml (renderer)...
       apply  renderers/haml
      insert  Gemfile
    applying  sass (stylesheet)...
       apply  stylesheets/sass
      insert  Gemfile
      insert  app/app.rb
      create  lib/sass_init.rb
      create  app/stylesheets
   identical  .components
Bundling application dependencies using bundler...
         run  bundle install from "."
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Installing rake (10.0.3) 
Using i18n (0.6.4) 
Using multi_json (1.6.1) 
Using activesupport (3.2.12) 
Installing builder (3.0.4) 
Installing activemodel (3.2.12) 
Installing arel (3.0.2) 
Installing tzinfo (0.3.36) 
Installing activerecord (3.2.12) 
Installing metaclass (0.0.1) 
Installing mocha (0.10.5) 
Installing bourne (1.1.2) 
Using bundler (1.3.1) 
Using tilt (1.3.4) 
Installing haml (4.0.0) 
Using rack (1.5.2) 
Using url_mount (0.2.1) 
Using http_router (0.10.2) 
Using mime-types (1.21) 
Using polyglot (0.3.3) 
Using treetop (1.4.12) 
Using mail (2.3.3) 
Using rack-protection (1.4.0) 
Using sinatra (1.3.5) 
Using thor (0.15.4) 
Using padrino-core (0.10.7) 
Using padrino-helpers (0.10.7) 
Using padrino-admin (0.10.7) 
Using padrino-cache (0.10.7) 
Using padrino-gen (0.10.7) 
Using padrino-mailer (0.10.7) 
Using padrino (0.10.7) 
Installing rack-test (0.6.2) 
Installing sass (3.2.6) 
Installing shoulda-context (1.0.2) 
Installing shoulda-matchers (1.4.2) 
Installing shoulda (3.3.2) 
Installing sinatra-flash (0.3.0) 
Installing sqlite3 (1.3.7) ....
.........................
.

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from haml:

HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
your application:

* Support for Ruby 1.8.6 dropped
* Support for Rails 2 dropped
* Sass filter now always outputs <style> tags
* Data attributes are now hyphenated, not underscored
* html2haml utility moved to the html2haml gem
* Textile and Maruku filters moved to the haml-contrib gem

For more info see:

http://rubydoc.info/github/haml/haml/file/CHANGELOG.md

=================================================================
sample_blog is ready for development!
=================================================================
$ cd /home/renich/Projects/ruby/padrino/sample_blog
=================================================================

      insert    app/app.rb
  => Executing: padrino-gen admin -r=/home/renich/Projects/ruby/padrino/sample_blog
       force  .components
      create  admin
       exist  admin
      create  admin/controllers/base.rb
      create  admin/controllers/sessions.rb
      create  public/admin
      create  public/admin/stylesheets/base.css
      create  public/admin/stylesheets/themes/amro/style.css
      create  public/admin/stylesheets/themes/bec-green/style.css
      create  public/admin/stylesheets/themes/bec/style.css
      create  public/admin/stylesheets/themes/blue/style.css
      create  public/admin/stylesheets/themes/default/style.css
      create  public/admin/stylesheets/themes/djime-cerulean/style.css
      create  public/admin/stylesheets/themes/kathleene/style.css
      create  public/admin/stylesheets/themes/olive/style.css
      create  public/admin/stylesheets/themes/orange/style.css
      create  public/admin/stylesheets/themes/reidb-greenish/style.css
      create  public/admin/stylesheets/themes/ruby/style.css
      create  public/admin/stylesheets/themes/warehouse/style.css
      create  admin/app.rb
      append  config/apps.rb
      insert  admin/app.rb
       apply  orms/activerecord
       apply  tests/shoulda
      create  models/account.rb
      create  test/models/account_test.rb
      create  db/migrate/001_create_accounts.rb
      create  admin/views/accounts
      create  admin/controllers/accounts.rb
      create  admin/views/accounts/_form.haml
      create  admin/views/accounts/edit.haml
      create  admin/views/accounts/index.haml
      create  admin/views/accounts/new.haml
      insert  admin/app.rb
       force  models/account.rb
      create  db/seeds.rb
       exist  admin/controllers
       exist  admin/views
      create  admin/views/base
      create  admin/views/layouts
      create  admin/views/sessions
      create  admin/views/base/_sidebar.haml
      create  admin/views/base/index.haml
      create  admin/views/layouts/application.haml
      create  admin/views/sessions/new.haml
      insert  admin/app.rb
      insert  Gemfile
        gsub  admin/views/accounts/_form.haml
        gsub  admin/controllers/accounts.rb

=================================================================
The admin panel has been mounted! Next, follow these steps:
=================================================================
  1) Run 'bundle install'
  2) Run 'padrino rake ar:migrate'
  3) Run 'padrino rake seed'
  4) Visit the admin panel in the browser at '/admin'
=================================================================

=> Executing Rake ar:create ar:migrate seed ...
Could not find gem 'bcrypt-ruby (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
  => Executing: padrino-gen model post title:string body:text -r=/home/renich/Projects/ruby/padrino/sample_blog
Could not find gem 'bcrypt-ruby (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
      insert    db/migrate/002_create_posts.rb
/home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/inject_into_file.rb:99:in `binread': No such file or directory - /home/renich/Projects/ruby/padrino/sample_blog/db/migrate/002_create_posts.rb (Errno::ENOENT)
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/inject_into_file.rb:99:in `replace!'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/inject_into_file.rb:60:in `invoke!'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions.rb:95:in `action'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/inject_into_file.rb:31:in `insert_into_file'
    from https://github.com/padrino/padrino-recipes/raw/master/templates/sampleblog_template.rb:22:in `apply'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions.rb:221:in `instance_eval'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions.rb:221:in `apply'
    from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/lib/padrino-gen/generators/runner.rb:135:in `execute_runner'
    from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/lib/padrino-gen/generators/project.rb:56:in `setup_project'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:27:in `run'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `block in invoke_all'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `each'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `map'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `invoke_all'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/group.rb:238:in `dispatch'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
    from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/lib/padrino-gen/generators/cli.rb:51:in `setup'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:27:in `run'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `block in invoke_all'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `each'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `map'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `invoke_all'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/group.rb:238:in `dispatch'
    from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
    from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/bin/padrino-gen:16:in `<main>'
renich commented 11 years ago

[renich@introdeskg02org sample_blog]$ cat Gemfile source :rubygems

Server requirements

gem 'thin' # or mongrel

gem 'trinidad', :platform => 'jruby'

Project requirements

gem 'rake' gem 'sinatra-flash', :require => 'sinatra/flash'

Component requirements

gem 'bcrypt-ruby', :require => "bcrypt" gem 'sass' gem 'haml' gem 'activerecord', :require => "active_record" gem 'sqlite3'

Test requirements

gem 'shoulda', :group => "test" gem 'rack-test', :require => "rack/test", :group => "test"

Padrino Stable Gem

gem 'padrino', '0.10.7'

Or Padrino Edge

gem 'padrino', :git => 'git://github.com/padrino/padrino-framework.git'

Or Individual Gems

%w(core gen helpers cache mailer admin).each do |g|

gem 'padrino-' + g, '0.10.7'

end

On Wed, Mar 6, 2013 at 3:15 AM, Carlo Bertini notifications@github.comwrote:

Your Gemfile contain

gem 'bcrypt-ruby', :require => "bcrypt"

please post Gemfile

— Reply to this email directly or view it on GitHubhttps://github.com/padrino/padrino-recipes/issues/50#issuecomment-14489493 .

It's hard to be free... but I love to struggle. Love isn't asked for; it's just given. Respect isn't asked for; it's earned! Renich Bon Ciric

http://www.woralelandia.com/ http://www.introbella.com/

WaYdotNET commented 11 years ago

Please check if my patch worl

padrino g project sample_blog --template https://raw.github.com/WaYdotNET/padrino-recipes/master/templates/sampleblog_template.rb 
renich commented 11 years ago

On Fri, Mar 8, 2013 at 4:06 AM, Carlo Bertini notifications@github.com wrote:

Please check if my patch worl

padrino g project sample_blog --template https://raw.github.com/WaYdotNET/padrino-recipes/master/templates/sampleblog_template.rb

Nope, it did not work. It got passed where it got stuck though and it finishes... but no website in the end.

[renich@introdeskg02org padrino]$ padrino g project sample_blog --template https://raw.github.com/WaYdotNET/padrino-recipes/master/templates/sampleblog_template.rb apply https://raw.github.com/WaYdotNET/padrino-recipes/master/templates/sampleblog_template.rb => Executing: padrino-gen project sample_blog --orm=activerecord --renderer=haml --script=jquery --stylesheet=sass --test=shoulda -r=/home/renich/Projects/ruby/padrino create create .gitignore create config.ru create config/apps.rb create config/boot.rb create public/favicon.ico create public/images create public/javascripts create public/stylesheets create tmp create .components create app create app/app.rb create app/controllers create app/helpers create app/views create app/views/layouts create Gemfile applying activerecord (orm)... apply orms/activerecord insert Gemfile insert Gemfile insert app/app.rb create config/database.rb applying shoulda (test)... apply tests/shoulda insert Gemfile insert Gemfile create test/test_config.rb insert test/test_config.rb create test/test.rake skipping mock component... applying jquery (script)... apply scripts/jquery create public/javascripts/jquery.js create public/javascripts/jquery-ujs.js create public/javascripts/application.js applying haml (renderer)... apply renderers/haml insert Gemfile applying sass (stylesheet)... apply stylesheets/sass insert Gemfile insert app/app.rb create lib/sass_init.rb create app/stylesheets identical .components

sample_blog is ready for development!

$ cd /home/renich/Projects/ruby/padrino/sample_blog

$ bundle install

  insert    app/app.rb
  insert    Gemfile

Bundling application dependencies using bundler... run bundle install from "." The source :rubygems is deprecated because HTTP requests are insecure. Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not. Fetching gem metadata from http://rubygems.org/........... Fetching gem metadata from http://rubygems.org/.. Resolving dependencies... Using rake (10.0.3) Using i18n (0.6.4) Using multi_json (1.6.1) Using activesupport (3.2.12) Using builder (3.0.4) Using activemodel (3.2.12) Using arel (3.0.2) Using tzinfo (0.3.36) Using activerecord (3.2.12) Installing bcrypt-ruby (3.0.1) .............. .

Using metaclass (0.0.1) Using mocha (0.10.5) Using bourne (1.1.2) Using bundler (1.3.1) Using tilt (1.3.4) Using haml (4.0.0) Using rack (1.5.2) Using url_mount (0.2.1) Using http_router (0.10.2) Using mime-types (1.21) Using polyglot (0.3.3) Using treetop (1.4.12) Using mail (2.3.3) Using rack-protection (1.4.0) Using sinatra (1.3.5) Using thor (0.15.4) Using padrino-core (0.10.7) Using padrino-helpers (0.10.7) Using padrino-admin (0.10.7) Using padrino-cache (0.10.7) Using padrino-gen (0.10.7) Using padrino-mailer (0.10.7) Using padrino (0.10.7) Using rack-test (0.6.2) Using sass (3.2.6) Using shoulda-context (1.0.2) Using shoulda-matchers (1.4.2) Using shoulda (3.3.2) Using sinatra-flash (0.3.0) Using sqlite3 (1.3.7) Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed. => Executing: padrino-gen admin -r=/home/renich/Projects/ruby/padrino/sample_blog force .components create admin exist admin create admin/controllers/base.rb create admin/controllers/sessions.rb create public/admin create public/admin/stylesheets/base.css create public/admin/stylesheets/themes/amro/style.css create public/admin/stylesheets/themes/bec-green/style.css create public/admin/stylesheets/themes/bec/style.css create public/admin/stylesheets/themes/blue/style.css create public/admin/stylesheets/themes/default/style.css create public/admin/stylesheets/themes/djime-cerulean/style.css create public/admin/stylesheets/themes/kathleene/style.css create public/admin/stylesheets/themes/olive/style.css create public/admin/stylesheets/themes/orange/style.css create public/admin/stylesheets/themes/reidb-greenish/style.css create public/admin/stylesheets/themes/ruby/style.css create public/admin/stylesheets/themes/warehouse/style.css create admin/app.rb append config/apps.rb insert admin/app.rb apply orms/activerecord apply tests/shoulda create models/account.rb create test/models/account_test.rb create db/migrate/001_create_accounts.rb create admin/views/accounts create admin/controllers/accounts.rb create admin/views/accounts/_form.haml create admin/views/accounts/edit.haml create admin/views/accounts/index.haml create admin/views/accounts/new.haml insert admin/app.rb force models/account.rb create db/seeds.rb exist admin/controllers exist admin/views create admin/views/base create admin/views/layouts create admin/views/sessions create admin/views/base/_sidebar.haml create admin/views/base/index.haml create admin/views/layouts/application.haml create admin/views/sessions/new.haml insert admin/app.rb insert Gemfile gsub admin/views/accounts/_form.haml gsub admin/controllers/accounts.rb

The admin panel has been mounted! Next, follow these steps:

1) Run 'bundle install' 2) Run 'padrino rake ar:migrate' 3) Run 'padrino rake seed'

4) Visit the admin panel in the browser at '/admin'

=> Executing Rake ar:create ar:migrate seed ... /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler/runtime.rb:33:in block in setup': You have already activated thor 0.17.0, but your Gemfile requires thor 0.15.4. Using bundle exec may solve this. (Gem::LoadError) from /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler/runtime.rb:19:in setup' from /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler.rb:120:in setup' from /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler/setup.rb:7:in <top (required)>' from /usr/share/rubygems/rubygems/custom_require.rb:60:in require' from /usr/share/rubygems/rubygems/custom_require.rb:60:inrescue in require' from /usr/share/rubygems/rubygems/custom_require.rb:35:in require' from /home/renich/Projects/ruby/padrino/sample_blog/config/boot.rb:7:in <top (required)>' from /usr/share/rubygems/rubygems/custom_require.rb:36:in require' from /usr/share/rubygems/rubygems/custom_require.rb:36:inrequire' from /home/renich/.gem/ruby/1.9.1/gems/padrino-core-0.10.7/lib/padrino-core/cli/base.rb:54:in rake' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor/task.rb:27:inrun' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor/invocation.rb:120:in invoke_task' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor.rb:344:indispatch' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor/base.rb:434:in start' from /home/renich/.gem/ruby/1.9.1/gems/padrino-core-0.10.7/bin/padrino:9:in

' => Executing: padrino-gen model post title:string body:text -r=/home/renich/Projects/ruby/padrino/sample_blog apply orms/activerecord apply tests/shoulda create models/post.rb create test/models/post_test.rb create db/migrate/002_create_posts.rb insert db/migrate/002_create_posts.rb => Executing Rake ar:migrate ... /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler/runtime.rb:33:in block in setup': You have already activated thor 0.17.0, but your Gemfile requires thor 0.15.4. Using bundle exec may solve this. (Gem::LoadError) from /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler/runtime.rb:19:in setup' from /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler.rb:120:in setup' from /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler/setup.rb:7:in <top (required)>' from /usr/share/rubygems/rubygems/custom_require.rb:60:in require' from /usr/share/rubygems/rubygems/custom_require.rb:60:inrescue in require' from /usr/share/rubygems/rubygems/custom_require.rb:35:in require' from /home/renich/Projects/ruby/padrino/sample_blog/config/boot.rb:7:in <top (required)>' from /usr/share/rubygems/rubygems/custom_require.rb:36:in require' from /usr/share/rubygems/rubygems/custom_require.rb:36:inrequire' from /home/renich/.gem/ruby/1.9.1/gems/padrino-core-0.10.7/lib/padrino-core/cli/base.rb:54:in rake' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor/task.rb:27:inrun' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor/invocation.rb:120:in invoke_task' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor.rb:344:indispatch' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor/base.rb:434:in start' from /home/renich/.gem/ruby/1.9.1/gems/padrino-core-0.10.7/bin/padrino:9:in
' => Executing: padrino-gen controller posts get:index get:show -r=/home/renich/Projects/ruby/padrino/sample_blog create app/controllers/posts.rb create app/helpers/posts_helper.rb create app/views/posts apply tests/shoulda create test/app/controllers/posts_controller_test.rb gsub app/controllers/posts.rb insert app/controllers/posts.rb insert app/controllers/posts.rb insert app/controllers/posts.rb => Executing: padrino-gen admin_page post -r=/home/renich/Projects/ruby/padrino/sample_blog create admin/views/posts create admin/controllers/posts.rb create admin/views/posts/_form.haml /home/renich/.gem/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/sqlite_adapter.rb:472:in table_structure': Could not find table 'posts' (ActiveRecord::StatementInvalid) from /home/renich/.gem/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/sqlite_adapter.rb:346:in columns' from /home/renich/.gem/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/schema_cache.rb:12:in block in initialize' from /home/renich/.gem/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/model_schema.rb:228:in yield' from /home/renich/.gem/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/model_schema.rb:228:in default' from /home/renich/.gem/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/model_schema.rb:228:in columns' from /home/renich/.gem/ruby/1.9.1/gems/padrino-admin-0.10.7/lib/padrino-admin/generators/orm.rb:51:in columns' from /home/renich/.gem/ruby/1.9.1/gems/padrino-admin-0.10.7/lib/padrino-admin/generators/orm.rb:83:in column_fields' from (erb):1:in template' from /usr/share/ruby/erb.rb:838:ineval' from /usr/share/ruby/erb.rb:838:in result' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/file_manipulation.rb:111:in block in template' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/create_file.rb:54:in call' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/create_file.rb:54:in render' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/create_file.rb:63:in block (2 levels) in invoke!' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/create_file.rb:63:in open' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/create_file.rb:63:in block in invoke!' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/empty_directory.rb:133:in call' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/empty_directory.rb:133:in invoke_with_conflict_check' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/create_file.rb:61:in invoke!' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions.rb:95:in action' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/create_file.rb:26:in create_file' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/actions/file_manipulation.rb:110:in template' from /home/renich/.gem/ruby/1.9.1/gems/padrino-admin-0.10.7/lib/padrino-admin/generators/admin_page.rb:41:in block in create_controller' from /home/renich/.gem/ruby/1.9.1/gems/padrino-admin-0.10.7/lib/padrino-admin/generators/admin_page.rb:35:in each' from /home/renich/.gem/ruby/1.9.1/gems/padrino-admin-0.10.7/lib/padrino-admin/generators/admin_page.rb:35:in create_controller' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:27:in run' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in invoke_task' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in block in invoke_all' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in each' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in map' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in invoke_all' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/group.rb:238:in dispatch' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in start' from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/lib/padrino-gen/generators/cli.rb:51:in setup' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:27:inrun' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in invoke_task' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in block in invoke_all' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in each' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in map' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:126:in invoke_all' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/group.rb:238:in dispatch' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in start' from /home/renich/.gem/ruby/1.9.1/gems/padrino-gen-0.10.7/bin/padrino-gen:16:in
' => Executing: padrino-gen migration AddAccountToPost account_id:integer -r=/home/renich/Projects/ruby/padrino/sample_blog apply orms/activerecord create db/migrate/003_add_account_to_post.rb insert models/post.rb => Executing Rake ar:migrate ... /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler/runtime.rb:33:in block in setup': You have already activated thor 0.17.0, but your Gemfile requires thor 0.15.4. Using bundle exec may solve this. (Gem::LoadError) from /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler/runtime.rb:19:in setup' from /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler.rb:120:in setup' from /home/renich/.gem/ruby/1.9.1/gems/bundler-1.3.1/lib/bundler/setup.rb:7:in <top (required)>' from /usr/share/rubygems/rubygems/custom_require.rb:60:in require' from /usr/share/rubygems/rubygems/custom_require.rb:60:inrescue in require' from /usr/share/rubygems/rubygems/custom_require.rb:35:in require' from /home/renich/Projects/ruby/padrino/sample_blog/config/boot.rb:7:in <top (required)>' from /usr/share/rubygems/rubygems/custom_require.rb:36:in require' from /usr/share/rubygems/rubygems/custom_require.rb:36:inrequire' from /home/renich/.gem/ruby/1.9.1/gems/padrino-core-0.10.7/lib/padrino-core/cli/base.rb:54:in rake' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor/task.rb:27:inrun' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor/invocation.rb:120:in invoke_task' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor.rb:344:indispatch' from /home/renich/.gem/ruby/1.9.1/gems/thor-0.17.0/lib/thor/base.rb:434:in start' from /home/renich/.gem/ruby/1.9.1/gems/padrino-core-0.10.7/bin/padrino:9:in
' insert admin/controllers/posts.rb insert app/controllers/posts.rb create app/views/posts/index.haml create app/views/posts/_post.haml create app/views/posts/show.haml create app/views/layouts/application.haml create public/stylesheets/reset.css create app/stylesheets/application.sass

sample_blog is ready for development!

$ cd ./sample_blog

$ bundle install

It's hard to be free... but I love to struggle. Love isn't asked for; it's just given. Respect isn't asked for; it's earned! Renich Bon Ciric

http://www.woralelandia.com/ http://www.introbella.com/

WaYdotNET commented 11 years ago

At this time padrino (0.10.7) need thor ~> 0.15.2. Workaround : remove thor 0.17.0, sorry, will fix with next realese

renich commented 11 years ago

On Fri, Mar 8, 2013 at 4:16 AM, Carlo Bertini notifications@github.comwrote:

At this time padrino (0.10.7) need thor ~> 0.15.2. Workaround : remove thor 0.17.0, sorry

Cool, it works now... almost...

I created a post as admin and I can't see a big error on http://localhost:3000/posts

Padrino::Routing::UnrecognizedException at /posts route mapping for url(:about) could not be found! file: routing.rb location: rescue in url line: 484

It's hard to be free... but I love to struggle. Love isn't asked for; it's just given. Respect isn't asked for; it's earned! Renich Bon Ciric

http://www.woralelandia.com/ http://www.introbella.com/

WaYdotNET commented 11 years ago

Into my pc work well http://img812.imageshack.us/img812/7590/screenshotfrom201303081.png

renich commented 11 years ago

On Fri, Mar 8, 2013 at 4:35 AM, Carlo Bertini notifications@github.comwrote:

Into my pc work well http://img812.imageshack.us/img812/7590/screenshotfrom201303081.png

Yes, that works well. But how about: http://localhost:3000/posts

admin/posts works well for me too... not /posts

It's hard to be free... but I love to struggle. Love isn't asked for; it's just given. Respect isn't asked for; it's earned! Renich Bon Ciric

http://www.woralelandia.com/ http://www.introbella.com/

WaYdotNET commented 11 years ago

ops sorry...now check :P:P

WaYdotNET commented 11 years ago

fast method: I' add the route into app/cotroller/post.rb (without create a new file :P, i'm lazy :P )

SampleBlog.controllers do
  get :about, :map => '/about_us' do
    render :haml, "%p This is a sample blog created to demonstrate how Padrino works!"
  end
end
renich commented 11 years ago

On Fri, Mar 8, 2013 at 5:00 AM, Carlo Bertini notifications@github.comwrote:

fast method: I' add the route into app/cotroller/post.rb (without create a new file :P, i'm lazy :P )

SampleBlog.controllers do get :about, :map => '/about_us' do render :haml, "%p This is a sample blog created to demonstrate how Padrino works!" endend

Ok, did that in the posts controller and I am getting 404 error. It still does not work.

You're getting close though ;)

It's hard to be free... but I love to struggle. Love isn't asked for; it's just given. Respect isn't asked for; it's earned! Renich Bon Ciric

http://www.woralelandia.com/ http://www.introbella.com/

WaYdotNET commented 11 years ago

this is my controller

SampleBlog.controllers :posts do

  get :index, :provides => [:html, :rss, :atom] do
      @posts = Post.all(:order => 'created_at desc')
      render 'posts/index'
  end

  get :show, :with => :id do
      @post = Post.find_by_id(params[:id])
      render 'posts/show'
  end

end

SampleBlog.controllers do
  get :about, :map => '/about_us' do
    render :haml, "%p This is a sample blog created to demonstrate how Padrino works!"
  end
end