As you want to see the database.yml and errors which are showing I just
mentioned above.


I am giving here again the database.yml files details:

         development:
  adapter: mysql
  database: depot_development
  host: localhost
  username:
  password:

test:
  adapter: mysql
  database: depot_test
  host: localhost
  username:
  password:

production:
  adapter: mysql
  database: depot_production
  host: localhost
  username:
  password:





On 23 August 2010 02:49, Colin Law <clan...@googlemail.com> wrote:

> On 22 August 2010 14:20, Irfan Ahmed <irfan...@gmail.com> wrote:
> > create.sql (saved in /db)
> > drop table if exists products;
> >     create table products (
> >     id int not null auto_increment,
> >     title varchar(100) not null,
> >     description text not null,
> >     image_url varchar(200) not null,
> >     price decimal(10, 2) not null,
> >     primary key (id)
> >     );
>
> I don't understand what the above is for or what you are doing with it.
>
> >
> >
> > Database configuration file:
> >          development:
> >   adapter: mysql
> >   database: depot_development
> >   host: localhost
> >   username:
> >   password:
> >
> > test:
> >   adapter: mysql
> >   database: depot_test
> >   host: localhost
> >   username:
> >   password:
> >
> > production:
> >   adapter: mysql
> >   database: depot_production
> >   host: localhost
> >   username:
> >   password:
> >
> > and then if i execute ruby script/server coomand then:
> >  it shows:
> >
> >
> > Routing Error
> >
> > No route matches "/admin" with {:method=>:get}
>
> Are you saying that it shows that error immediately after starting the
> server?  i think it is more likely that it is when you enter a URL in
> the browser.  Is that correct.  If so then it is not a db issue but a
> routing issue.  Have a look at the Rails Guide on routing
> (http://guides.rubyonrails.org/).  First though have a look at the
> Getting Started guide.  Work right through it and make sure you
> understand all of it.  Then work through all the other guides.
>
> Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


-- 
Irfan Ahmed Rizvi
http://www.creativemake.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to