Rails 3.1 form & routes.rb [newbie]

Hi all,

maybe is a newbie question anyway

  1. I create de rails app with

rails new {my app}

  1. after I add some gem to my Gemfile

source ‘http://rubygems.org

gem ‘rails’, ‘3.1.1’

gem ‘sqlite3’

gem ‘simple_form’

gem ‘execjs’

gem ‘therubyracer’

Gems used only for assets and not required

in production environments by default.

group :assets do
gem ‘sass-rails’, ‘~> 3.1.4’
gem ‘coffee-rails’, ‘~> 3.1.1’
gem ‘uglifier’, ‘>= 1.0.3’

gem ‘jquery-rails’

group :test do

Pretty printed test output

gem ‘turn’, :require => false

  1. after I create a formonline with a scaffold

rails generate scaffold FormOnline comune:string provincia:string
richiedente:text email_richiedente:string

  1. after I delete the /public/index.html the file

  2. Change the config/routes.rb file with this code

MyApp::Application.routes.draw do

resources :formonline

root :to => ‘formnline#index’


**** ISSUE ****

when I reload the home page I have no problem but when I have to click
in the link like


can’t see the page is a problem of vhost file config? or I have to chage
the config/routes.rb file

thank you in advances