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
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
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:
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
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
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
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:
7 matches
Mail list logo