similar to: Newbie rails woes - the 'Recognition failed for “/admin”' thing

Displaying 20 results from an estimated 10000 matches similar to: "Newbie rails woes - the 'Recognition failed for “/admin”' thing"

2006 Feb 25
20
Agile Rails book code fails page 32
Starting Agile Web Development with Rails, page 32, everything has worked well so far but on (book not pdf) page 32 I don''t get the "Template Is Missing" error. I get Routing Error Cannot load config/routes.rb: No such file to load -- ./demo/script/../config/../config/routes.rb There is a file at e:\ruby\ror\work\demo\config\routes.rb It''s all greek to me and
2010 Aug 24
3
can not execute ruby script/generate scaffold Product Admin
in my depot application, i need to execute this command correctly...but I can not do anything! the command could not execute as it is stated and figured in the book. if there is an equivalent command for creating and Model Product under Admin controller, please let me know. Now I know how to configure mysql with rails. So there is no problem. -- Irfan Ahmed Rizvi http://www.creativemake.com --
2006 Jan 18
5
access denied problem
Hello I''ve started working through the book "Agile web development with Rails" and so far everything has been great. I''m on page 56, 57 trying to create the admin tool for the example project "Depot". I''m on OS X Panther 10.3.9. I have checked the Errata on the website and tried some of the suggestions there, but nothing has worked. When I
2008 Jan 18
15
scaffold :product missing in Rails 2.0.2 version of depot tutorial?
I am getting an error when I try to run the code for the depot application (page 67 in the Agile Web Development on Rails book, 2nd edition). I built the complete depot app with Rails 1.2.6, and all worked well. I then updated to Gem 1.0.1 and RoR 2.0.2, and attempted to repeat the tutorial, and got this strange behavior. I used "rails depot --database=mysql" because I have not
2006 Jul 26
3
newbie: Scaffold doesn''t pickup DB changes
I''m following along with the depot example in ''Agile Web Development'' and ran into a problem with Scaffold. I changed the MySQL table structure to add a few columns directly and also tried the migrate script to change the database after I got the initial scaffolding to work. However, I can''t seem to get the new columns to show up and am stumped as to how I can
2006 Apr 03
18
newbie generate scaffold
Hi Guys First time on the list and pretty new to the rails way of doing things, yup I know sorry.. another newbie! anyway, apologies out of the way, this is the problem I am having... I have purchased the "Agile Development with Rails" book and have just started running through the ''Depot'' demo application. I have got to page 57... I have my project files all
2006 Jun 14
6
Lost Connection to MySQL
Error Message: MyMysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM products Running Fedora 5, using available Red Hat modules and latest version of Rails. This problem just appeared. I had been enjoying going through the tutorial "Depot" when it started displaying this problem. With phpMyAdmin I am able to access the depot_development data base containing
2006 Jan 28
10
Rails scaffolding - cannot get access to MySQL
Hi, A newbie in the RoR world, I''m already more or less stuck when generating the scaffold for my first tutorial project ... When I try to generate scaffold code for my version of the ''depot'' application from the ''Agile rails ...'' book, I receive the following error: #28000Access denied for user ''bo''@''localhost''
2006 Apr 20
8
generate scaffold not generating views
Hi! Sorry for the newbie question... I''m following the depot example in AgileWebDevelopmentWithRails. Stangelly, generating scaffolding using the command (page 53): ./script/generate scaffold Product Admin does not generate any .rhtml file, but just: exists app/controllers/ exists app/helpers/ exists app/views/admin exists test/functional/
2007 Dec 22
8
Rails 2.0 scaffold
Hey guys, I posted the other day about scaffold not working and i was told that it was rails 2.0 doing this. (btw i''m using adgile web development) I have read on the internet that you need to put extra stuff like title, description...... So i did this: C:\ruby\depot>ruby script\generate scaffold Product Admin id:int title:varchar(1 00) description:text image_url:varchar(200)
2006 Apr 05
13
scaffold misuse?
Running ruby script/generate scaffold Product Admin is a wonderful way to set up well, exactly what it says, a scaffold. My problem is that I have several other tables that are linked, through foreign keys, to the Product table. Say an "authors" table. Now when I go enter a new product, a book, I want the application to provide a drop down list of authors generated from the records in
2006 Feb 09
13
Howto work with a page not generated by the scaffold ?
I am a newbie Ruby and RoR user. In my tests using the turorials that I found over the web, everthing is working fine and I am very impressed about RoR framework. As I am a Delphi developer, without any web development experience, There is some thing hard to understando and I didn''t find a tutorial about this. I wonder how to create a non-scaffold page ? I have customers,
2005 Sep 22
5
Adding Categories to the Depot example in the Agile Rails book
Hi ya, I want to add categories to the depot example in the Agile rails book. These are my thoughts: Create a new table called categories with id, title, description, and image fields. Add a new field to the products table called category_id Create a model called Category with "has_many :products" Now I should have a one to many link between the products and categories tables? Now
2006 May 06
4
Scaffold Uses Wrong Host for MySQL user
I''m following the example Depot app in Agile Web Development with Rails. The scaffold fails because it is not using the correct host for the user. Here is the error that the scaffold emits: Access denied for user ''jimmy''@''%'' to database ''depot_development'' The MySql user ''jimmy'' was created with the host of
2006 Jul 10
3
Are user-made modules supposed to work?
Is there a reason why modularizing your controllers doesn''t work? I tried the following: ruby script/generate scaffold Admin::Bug But it just won''t work. I get a routing error when trying to access /admin/bugs/ : Recognition failed for "/admin/bugs/" P.S. If I create the model/controller individually it still doesn''t seem to work. A bit of help
2006 Jun 06
15
error working through Agile !!!
Hi everyone, I''m working my way thru the ''Depot'' project from Agile Web Development with Rails. I got to the bit where I type: ruby script/generate scaffold Product admin And I get the following error: error Before updating scaffolding from new DB schema, try creating a table for your model (Product) ( on the last line ! ) Now I have followed everything as
2006 Jun 13
0
Routing Error Recognition failed for "/notes"
I''m a noob to rails and i could use some help. Fedora Core 5 Ruby 1.8.4 Rails 1.1.2 Postgres for My Database Using webrick for testing at the monent but have lighttpd installed but the service is diabled. Here are my steps that i fillow. In my home directory i type rails test #cd test #sudo chmod -R 775 log #sudo chmod -R 775 public #ruby script/server Then i make my postgres database
2006 Jan 22
2
a newbie doomed in the first introduction to ruby.
Hello, I have bought the Dave Thomas Agile Developtment with Rails. (I have previously bought and read his Programming with Ruby book) On my winxp sp2 system ruby 1.8.15 (one click installer), rails 1.0framework (with ruby gems) and mysql 5.0 are installed. While following the example stated in the Chapter Building an Application I had following problem. After creating databases for test,
2006 Sep 08
2
rails equivalent to symfony admin generator?
I''m an experienced PHP programmer (don''t know Ruby yet), and I''m playing around with Symfony (PHP MVC framework similar to Rails) and I found myself asking if there''s really any reason to use it over Rails. From what I''ve seen just about every feature in Rails is superior except one very important thing - Symfony''s admin generator. This is
2008 May 09
3
Depot Application not working
Hello All, I am doing the depot appliction. I was first installed Instant Rails 2.0 on my machine. got error in getting scaffold :product then after searching in forum took the 1.2.6 version using the below command >gem install rails --version 1.2.6 --include-dependencies Now i am getting the error after starting the server >ruby script/server got the below error