[Rails] accepts_nested_attributes_for and ActiveResources

2009-07-23 Thread dl
Does accepts_nested_attributes_for work with ActiveResources? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsu

[Rails] Nested ARes models

2009-07-23 Thread dl
I have two ARecord models, Company and Employee, that are both serviced by RESTful controllers. I want to create a nested ActiveResource-based front end that makes calls on this RESTful interface. In my front-end client routes.rb I have map.resources :companies do |company| company.resource

[Rails] Re: How do I access a my :include data in my ROR SQL results?

2009-06-02 Thread DL Buss
> now, in PHP, i could just call > $all_books['book_name'] or $all_books['author_name'] and both would work > fine > > in rail, i seem to have an issue where i can call @all_books.book_name > just fine, but @all_books.author_name gives me an error Dang. I solved my problem. It was so simple.

[Rails] How do I access a my :include data in my ROR SQL results?

2009-06-02 Thread DL Buss
I am new to ROR, and I'm stuck! My MySQL tables are setup like this: books -- id book_name author_id authors --- id author_name my regular PHP/SQL query would look something like this: $all_books = SELECT * FROM books LEFT JOIN authors ON books.author_id=authors.id so, i create this

[Rails] Re: Implementation guidance, please

2008-11-06 Thread dl
Here's what I would do, knowing very little about what you want your app to accomplish: 1) write a RoR script that reads .csv files from the file system and creates records for each .csv file row in a database (sqlite3 or mysql) table (maybe named PayRecords). 2) use the RoR script/generate sc

[Rails] Re: Still undefined pagination

2008-11-06 Thread dl
I think you need something like: require "will_paginate" in your environment.rb file. Be sure to put it after the Rails::Initializer block so all the Rails goodies are loaded--will- pagenate needs them. On Nov 5, 7:27 pm, Hammer Ting <[EMAIL PROTECTED]> wrote: > I have tried to install both