[Rails] Where to start debugging

2010-05-24 Thread sso
Hi, I've adopted a project that uses some rails features I'm not quite used to yet. (ie merb, haml) There is a snippet below. I'm not even sure what other part of the code to include to help with this. I'm open to suggestions :) $ merb ... ... ... ~ Compiling routes... app/views/stretches/sho

[Rails] Re: Installing merb - connection reset, retrying, connection reset, retrying....

2010-05-23 Thread sso
I did gem update --system This seems to have fixed the problem. Who knows :) On May 24, 1:17 am, sso wrote: > This is my output.  I don't know what to do to make this work.  I have > installed other gems without any problems. > > Suggestions? > > debian:/home/kevi

[Rails] Installing merb - connection reset, retrying, connection reset, retrying....

2010-05-23 Thread sso
This is my output. I don't know what to do to make this work. I have installed other gems without any problems. Suggestions? debian:/home/kevin# gem source -a http://www.rubygems.org http://www.rubygems.org added to sources debian:/home/kevin# gem install merb -V GET 302 Found: http://gems.ruby

[Rails] Re: Designing An Application (UML, Class Diagrams)

2010-05-22 Thread sso
Thank you for your help. You got me going in the right direction. railroad wasn't in my path, duh! :) On May 22, 1:56 pm, Hassan Schroeder wrote: > On Sat, May 22, 2010 at 7:57 AM, sso wrote: > > Great! Thanks for the info. > > Problem though, it only ever outputs f

[Rails] Re: Designing An Application (UML, Class Diagrams)

2010-05-22 Thread sso
Great! Thanks for the info. Problem though, it only ever outputs files of 0 size. The examples also show it being run as `railroad -options`, I have to use rake to run it, not sure if thats normal. Any help? On May 21, 4:59 pm, Michael Pavling wrote: > On 21 May 2010 21:52, Marnen Laibow-Koser

[Rails] Designing An Application (UML, Class Diagrams)

2010-05-21 Thread sso
Hi Is there any freeware anybody would recommend for showing database models and how they relate to each other? I'm picking up an app another developer left in a mess and I'm trying to sort it out. Diagrams would be a great help. Suggestions? -- You received this message because you are subscrib

[Rails] route conflict - help resolving

2010-05-17 Thread sso
These are the routes I would like: map.forums_new_topic 'forums/:forum_id/:subsection_id/topics/ new', :controller => "topics", :action => "new" map.forums_show_topic 'forums/:forum_id/:subsection_id/:topic_id', :controller => "topics", :action => "show" however no matter which order they're i

[Rails] Re: Help with partials - newbie

2010-05-13 Thread sso
Disregard this post. Delete if you have the power. Thanks On May 13, 3:02 pm, sso wrote: > The way this works I'm getting a table for each subsection.   All I > really want is a for each subsection.  It makes sense why this is > happening I'm just not sure of the most appr

[Rails] Help with partials - newbie

2010-05-13 Thread sso
The way this works I'm getting a table for each subsection. All I really want is a for each subsection. It makes sense why this is happening I'm just not sure of the most appropriate way to work around this. Any suggestions? (I could just leave them in divs format them with css, just looking

[Rails] Routing - newbie question about shorting the url

2010-05-12 Thread sso
Hi Right now I have my url showing as the following: http://localhost/categories/italian/recipes/special-pasta-sauce I would like it to be: http://localhost/categories/italian/special-pasta-sauce (or even http://localhost/italian/special-pasta-sauce) my category model has_many :recipes and my rec

[Rails] If controller doesn't exist: search database for its name

2010-05-11 Thread sso
I'll use my recipe example again. It would be nice if I could have my routes (I think) set up so that if somebody enters a a controller that doesn't exist a database search runs and looks for the controller name as one of the categories (for example the user enters http://www.com/italian). This is

[Rails] Getting data from an ancestor (I think)

2010-05-11 Thread sso
I'm setting up a music catalogue to learn my way around RoR. In index.html.erb I would like to show the band name instead of the id. What is the proper way to do this? # records.rb class Record < ActiveRecord::Base belongs_to :band; end # bands.rb class Band < ActiveRecord::Base has_many :rec