search for: natcon67

Displaying 9 results from an estimated 9 matches for "natcon67".

2006 Jun 08
8
another routes question
i need help setting up the routes for my app. I have created about 10 controllers in the app/controllers/pro directory: app/controllers/pro/address_controller.rb app/controllers/pro/certification_controller.rb app/controllers/pro/program_controller.rb app/controllers/pro/program_controller.rb and so on... The problem is that I would like to also use app/controllers/pro as a controller; so
2006 Jun 03
8
confused about ActiveRecord relationships
I am very confused about where to put the belongs_to and the has_one (and other relationship identifiers). I have read the RDoc and the agile book many times about this and I think i still see it backwards. Let me outline my app so you have an understanding... I have 2 tables: Schools { id, school_name, address_id } and Addresses { street1, street2, city, state, zip, country } *** this
2006 Jun 08
0
adding anchor ref in controller action
hello, is there a way to add an anchor reference (#anchor_name) to the url from within the current controller action? Nate -- Posted via http://www.ruby-forum.com/.
2006 Jun 13
3
acts_as_tree problem accessing parent object
i have a model called certification_types that i''ve declared as acts_as_tree. I have a model called certification that belongs_to :certification_type . class CertificationController < ApplicationController ..... def summary_list @certifications = Certification.find(:all, :order=>''date'') end end summary_list.rhtml <% for certification in
2006 Jun 15
1
callback object problem
I''m trying to create a separate class to do validation so that about 10 models can use the same date validation. I have tried to use the example from the agile book but it''s not working. Here''s what I have: app/models/date_callbacks.rb class DateCallbacks def before_validation(model) if model.start_date > Date.today model.errors.add(:start_date, "must
2006 Jun 19
0
file upload directory structure
hello, I am building an application where different users will be uploading multiple documents and I would like some advice about how to save the document into the file system. What i know so far: I have a document model and it has some attributes about what type of document it is, when it was uploaded, the url (or filename) of the document, and more. I guess my questions are: Would you
2006 May 19
3
new to rails; problem with testing section in Agile book
Hello, I should give the expected disclaimer that I am brand new to rails and am going through the Agile web development with Rails book right now. I am in the testing section and I can''t get past an error. this is my cart_test.rb test file: require File.dirname(__FILE__) + ''/../test_helper'' class CartTest < Test::Unit::TestCase fixtures :products def setup
2006 May 25
4
question about creating rails app and FTP
Hello, I have a simple question about creating rails applications. I am signing up with dreamhost so that i can put my rails apps on the web (after giving up on trying to make my current VPS Plesk hosting work with rails). My main question is: when creating a new rails app, can i create it using the rails command on my computer and then upload the entire directory structure to my domain
2006 May 23
7
has_and_belongs_to_many question
Hello, I am trying to make the "switchover" to programming my apps in Rails and have a question about database structure. In the past i would structure a many to many like this: categories ---------------------------------------------------- | id | name | ---------------------------------------------------- 1 Some Category 2 Another