Is there an example ruby application that is your standard pet store or simpler application that I can use as a template? Sincerely, Nick Skriloff, ME, MCP Information Technology Specialist Darden Information Services Voice 434 243 5025 Fax 434 982 2741 skriloffn-f4ouqFeUts2a0hU+lRkGgZVzexx5G7lz@public.gmane.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
This was recently posted: http://www.anassina.com/projects/railspetstore/ On 7/27/05, Skriloff, Nicholas <SkriloffN-f4ouqFeUts2a0hU+lRkGgZVzexx5G7lz@public.gmane.org> wrote:> > Is there an example ruby application that is your standard pet store or > simpler application that I can use as a template? > > Sincerely, > Nick Skriloff, ME, MCP > Information Technology Specialist > Darden Information Services > Voice 434 243 5025 Fax 434 982 2741 > skriloffn-f4ouqFeUts2a0hU+lRkGgZVzexx5G7lz@public.gmane.org > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- ~~~~~~~~~~~~~~~~~~~ D''Andrew Thompson http://dathompson.blogspot.com _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 28/07/2005, at 1:12 PM, Skriloff, Nicholas wrote:> Is there an example ruby application that is your standard pet store > or simpler application that I can use as a template?Rails generates an application template for you when you create a new application. If you then generate some scaffolding and a model that should give you enough sample code to have a peek around and see how things work etc. Also, check out the wiki for open source apps to use as examples, though just using the scaffold code is probably the best way to start. The apps will have abstracted domain specific problems that may only serve to confuse if you''re learning the basics. - tim
I guess typo is really great for start. On 7/28/05, Tim Lucas <t.lucas-l/qNJNvq70OzaBltdDZI6w@public.gmane.org> wrote:> On 28/07/2005, at 1:12 PM, Skriloff, Nicholas wrote: > > > Is there an example ruby application that is your standard pet store > > or simpler application that I can use as a template? > > Rails generates an application template for you when you create a new > application. > > If you then generate some scaffolding and a model that should give you > enough sample code to have a peek around and see how things work etc. > > Also, check out the wiki for open source apps to use as examples, > though just using the scaffold code is probably the best way to start. > The apps will have abstracted domain specific problems that may only > serve to confuse if you''re learning the basics. > > - tim > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
I know that I rank at the heighth of newbie-ness by asking this question. But... For the petstore app, how do you get it running (for those of us who have not implemented a pre-built app). That is, presuming that you are simply running the webrick server. 1. I edited the config/database.yml to access mysql 2. I injected the sql and created the database schema/load-data from the sql in the db folder. 3. I started the webrick server from the scripts/server command 4. Tried pointing to http://localhost:3000/catalog and then tried account, signon-form, railspetstore, etc. Nothing! I''m sure I''m doing something immeasurably lame, but I''ve never had to implement a pre-built app with Rails. Thanks. On 7/28/05, femtowin femtowin <femtowin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I guess typo is really great for start. > > On 7/28/05, Tim Lucas <t.lucas-l/qNJNvq70OzaBltdDZI6w@public.gmane.org> wrote: > > On 28/07/2005, at 1:12 PM, Skriloff, Nicholas wrote: > > > > > Is there an example ruby application that is your standard pet store > > > or simpler application that I can use as a template? > > > > Rails generates an application template for you when you create a new > > application. > > > > If you then generate some scaffolding and a model that should give you > > enough sample code to have a peek around and see how things work etc. > > > > Also, check out the wiki for open source apps to use as examples, > > though just using the scaffold code is probably the best way to start. > > The apps will have abstracted domain specific problems that may only > > serve to confuse if you''re learning the basics. > > > > - tim > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- ~~~~~~~~~~~~~~~~~~~ D''Andrew Thompson http://dathompson.blogspot.com _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
What do you get when you just point to http://localhost:3000? If you ran script/server from within your railspetstore folder then just pointing to port 3000 will run public/index.html, which in this case includes a link to catalog/main which is the home page of the app. http://localhost:3000/catalog returns an error (since there''s no default action associated with catalog). On 7/28/05, D''Andrew Thompson <dandrew.thompson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I know that I rank at the heighth of newbie-ness by asking this question. > But... > > For the petstore app, how do you get it running (for those of us who have > not implemented a pre-built app). That is, presuming that you are simply > running the webrick server. > > 1. I edited the config/database.yml to access mysql > 2. I injected the sql and created the database schema/load-data from the > sql in the db folder. > 3. I started the webrick server from the scripts/server command > 4. Tried pointing to http://localhost:3000/catalog and then tried account, > signon-form, railspetstore, etc. > > Nothing! >-- "Impossible is nothing."
Hi, I have no specific knowledge of the petstore app, but this is what i would do when running a pre-built app: First ofcourse I would just try http://localhost:3000/ - this should probably be configured to point to the main entry-point for the app. If that fails i''ll check the routes file for clues on how to get to the main views. If that fails i''ll start looking at the controllers to look for obvious candidates like "Main" or "Welcome" or "Front". If that fails i''ll startup the text editor and check the code to see where it expects and entry point. regards, :Franco Paul D''Andrew Thompson wrote:> I know that I rank at the heighth of newbie-ness by asking this > question. But... > > For the petstore app, how do you get it running (for those of us who > have not implemented a pre-built app). That is, presuming that you are > simply running the webrick server. > > 1. I edited the config/database.yml to access mysql > 2. I injected the sql and created the database schema/load-data from > the sql in the db folder. > 3. I started the webrick server from the scripts/server command > 4. Tried pointing to http://localhost:3000/catalog and then tried > account, signon-form, railspetstore, etc. > > Nothing! > > I''m sure I''m doing something immeasurably lame, but I''ve never had to > implement a pre-built app with Rails. > > Thanks. > > On 7/28/05, *femtowin femtowin* <femtowin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > <mailto:femtowin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote: > > I guess typo is really great for start. > > On 7/28/05, Tim Lucas <t.lucas-l/qNJNvq70OzaBltdDZI6w@public.gmane.org > <mailto:t.lucas-l/qNJNvq70OzaBltdDZI6w@public.gmane.org>> wrote: > > On 28/07/2005, at 1:12 PM, Skriloff, Nicholas wrote: > > > > > Is there an example ruby application that is your standard pet > store > > > or simpler application that I can use as a template? > > > > Rails generates an application template for you when you create > a new > > application. > > > > If you then generate some scaffolding and a model that should > give you > > enough sample code to have a peek around and see how things work > etc. > > > > Also, check out the wiki for open source apps to use as examples, > > though just using the scaffold code is probably the best way to > start. > > The apps will have abstracted domain specific problems that may only > > serve to confuse if you''re learning the basics. > > > > - tim > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > ~~~~~~~~~~~~~~~~~~~ > D''Andrew Thompson > http://dathompson.blogspot.com <http://dathompson.blogspot.com> > >------------------------------------------------------------------------ > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 7/28/05, D''Andrew Thompson <dandrew.thompson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I know that I rank at the heighth of newbie-ness by asking this question. > But... > > For the petstore app, how do you get it running (for those of us who have > not implemented a pre-built app). That is, presuming that you are simply > running the webrick server. > > 1. I edited the config/database.yml to access mysql > 2. I injected the sql and created the database schema/load-data from the > sql in the db folder. > 3. I started the webrick server from the scripts/server command > 4. Tried pointing to http://localhost:3000/catalog and then tried account, > signon-form, railspetstore, etc. > > Nothing! > > I''m sure I''m doing something immeasurably lame, but I''ve never had to > implement a pre-built app with Rails. > > Thanks.I tried the petstore application last night on a linux machine. Perhaps I got a wrong version of it, but I had to change a few things to get it to run. I noticed that the script/server file''s first line was something like "#!/c:\ruby\ruby.exe", obviously it was for a Windows box. I changed that line to "#!/usr/bin/env ruby". Also, the database sql files created databases using CAPS for their names. Apparently, mysql is case sensitive. The config/database.yml file specified the database names in lower case, so I had to change that file to use uppercase. Other than that, it seemed to work fine. Unit tests didn''t work though, the tests couldn''t find a few tables. Not sure why.> > > On 7/28/05, femtowin femtowin <femtowin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I guess typo is really great for start. > > > > On 7/28/05, Tim Lucas <t.lucas-l/qNJNvq70OzaBltdDZI6w@public.gmane.org> wrote: > > > On 28/07/2005, at 1:12 PM, Skriloff, Nicholas wrote: > > > > > > > Is there an example ruby application that is your standard pet store > > > > or simpler application that I can use as a template? > > > > > > Rails generates an application template for you when you create a new > > > application. > > > > > > If you then generate some scaffolding and a model that should give you > > > enough sample code to have a peek around and see how things work etc. > > > > > > Also, check out the wiki for open source apps to use as examples, > > > though just using the scaffold code is probably the best way to start. > > > The apps will have abstracted domain specific problems that may only > > > serve to confuse if you''re learning the basics. > > > > > > - tim > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -- > ~~~~~~~~~~~~~~~~~~~ > D''Andrew Thompson > http://dathompson.blogspot.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
> > Also, the database sql files created databases using CAPS for their > names. Apparently, mysql is case sensitive. The config/database.yml > file specified the database names in lower case, so I had to change > that file to use uppercase.it seems that the petstore is beign developed under a windows box. AFAIK, mysql under windows is case insensitive for the table names. So naming a table ''PET'' will result in ''pet'' under windows, but not under *nix.> > Other than that, it seemed to work fine. Unit tests didn''t work > though, the tests couldn''t find a few tables. Not sure why. >Could it be that the tests refer to some tables with upper case names?