[Rails] Full time, direct hire Ruby/Rails position in Upstate SC

2008-12-11 Thread AndyV
resume and code sample in an introductory email to [EMAIL PROTECTED] Thanks, AndyV --~--~-~--~~~---~--~~ 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 rubyon

[Rails] Re: ActionController::Base.send :include,

2008-12-08 Thread AndyV
The first line is including some instance methods into ActionController::Base (from which ApplicationController inherits). The second line then adds helper_name to the list of helpers available to all controllers. The final line does the same thing for the views. On Dec 8, 4:12 am, Sijo Kg <[EMAI

[Rails] Re: Single URL/route --> Different controller/action routing. Is this possible?

2008-12-08 Thread AndyV
Sounds like you want to look into using a before_filter. The job of the filter would be to redirect the action2 users to action2 and allow the rest to default to action1. On Dec 8, 2:22 am, raghus <[EMAIL PROTECTED]> wrote: > Yes, I can call action2 in action1 in foo controller. But how about >

[Rails] Re: Problem with Acts As Versioned and Save v. Save Without Revision

2008-12-08 Thread AndyV
aav also requires an xxx_versions table (e.g., foo_versions if you're versioning foos). Check the documentation; there's a class-level method added to models that acts_as_versioned that will create the version table for you if you add it to a migration. On Dec 7, 8:24 pm, Ben Wilson <[EMAIL PROT

[Rails] Re: ASP.NET to Rails with MySQL

2008-11-12 Thread AndyV
Yes, you can mix hand-rolled sql queries (find_by_sql) with rails generated queries (find) as much as you like. On Nov 12, 6:49 am, Shilo Ayalon <[EMAIL PROTECTED]> wrote: > Hi - > > I'm thinking about porting an ASP.NET app to rails. This will require > complete re-write of the site's code, and

[Rails] Re: AJAX - REST & nested resources

2008-11-05 Thread AndyV
There's really no magic here. The default response to an update in the scaffolded controller is to redirect to the show event. If you want to do something different (ie., the convention doesn't work for you) then go to the scaffolded controller and change it. I'd guess you want to redirect to t

[Rails] Re: select in form - best practice?

2008-11-05 Thread AndyV
Looks like a good place to give this a spin: http://railscasts.com/episodes/121-non-active-record-model Basically, use a pure-ruby class to wrap the location types and let it support an ActiveRecord like interface (mainly find and all). Then you can do collection_select the way you would with a