Re: [Rails] Scaffolding working...kinda

2010-08-13 Thread Will Merrell
Scott Le gendre wrote: Hello all. I've been working through some online tutorials, learning ROR and have a question on scaffolding. Through the command promt i've ran the command: $ script/generate scaffold Albums [snip] So, the question is, why isnt it filling out the code I had expected? I

Re: [Rails] Re: Scaffolding working...kinda

2010-08-13 Thread Will Merrell
Scott Le gendre wrote: So use it to get started, but then be prepared to do the work your self. Will, thanks for the comments and fully noted! I'm doing a tutorial through lynda.com titled Ruby on Rails Essential Training. The tutorial is really great, but severely outdated. The

[Rails] determining where a function is called from

2010-03-14 Thread Will Merrell
I have a function that I use in my code in a number of places. It does some database lookup, processes it and returns some content to display. However, it needs to know where it was called from so that it can set up some return links. Currently I call it from a controller like this:

Re: [Rails] Re: Re: database design question: building features

2010-01-26 Thread Will Merrell
Marnen Laibow-Koser wrote: Will Merrell wrote: Marnen Laibow-Koser wrote: That shouldn't be a problem. Broadly speaking, it is better to refactor a database tomorrow than to overdesign it today. I'm certainly not in favor of over design, which is why I suggested something

Re: [Rails] database design question: building features

2010-01-25 Thread Will Merrell
Taylor Strait wrote: I am trying to decide between two different database architectures for an application to manage properties. For capturing the property features, I have two options: a single model/table with all the features as fields, or a set of joined models - property, feature, feature

Re: [Rails] Re: database design question: building features

2010-01-25 Thread Will Merrell
Marnen Laibow-Koser wrote: Will Merrell wrote: Taylor Strait wrote: I am trying to decide between two different database architectures for an application to manage properties. For capturing the property features, I have two options: a single model/table with all the features as fields

[Rails] Re: paperclip is not saving the files

2009-09-03 Thread Will Merrell
Kart wrote: class AddAttachmentToPolicies ActiveRecord::Migration def self.up add_column :policies, :attachment_file_name, :string add_column :policies, :attachment_content_type, :string add_column :policies, :attachment_file_size, :integer end I also recommend including: