[Rails] what's wrong with this code? (hitting my head against a wall)

2008-11-21 Thread Greg Hauptmann
Hi, I'm just trying to load a set of options which doesn't require tables (i.e. using tableless plugin). Error when going to view at http://localhost:3000/graph2/edit; is undefined method `calc_type' for Line(Table doesn't exist):Class Thanks in advance - details below:

[Rails] Re: how to run linux command in rake file

2008-11-21 Thread Vamsi Krishna
Gabriel Laskar wrote: On Thu, Nov 20, 2008 at 3:06 PM, Vamsi Krishna [EMAIL PROTECTED] wrote: but today_count returns 'true' instead of count. normal, system() return true or false only, not stdout... you can use ``, popen, or code that in ruby. today_count =

[Rails] Re: Switching the version of Rails that an app uses

2008-11-21 Thread Web Reservoir
Hi, Your problem is solved very easily. Install Netbeans 6.5 today. It comes with an exclusive FIRST TIME FEATURE added in this new version. It helps you choose the rails framework at the time of creating project. like Rails 1.2, 2.0.2, 2.1.2, 2.2.2 etc.. This was the most outstanding

[Rails] Re: Updating Rails in Aptana RadRails

2008-11-21 Thread Schalk Neethling
Thanks James. Will join up there. James Mitchell wrote: You will probably get a quicker answer if you ask on the Aptana RadRails mailing list. -- James Mitchell On Fri, Nov 21, 2008 at 4:31 PM, Schalk Neethling [EMAIL PROTECTED] wrote: Hey all, Rephrasing my previous question a

[Rails] filter_parameter_logging and https

2008-11-21 Thread Shuaib85
Hi guys I am not pretty sure where to use filter_parameter_logging is it in the configuration file, the model, or the controller. How do I use https? is there any tutorial? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: How to install the plugin manually?

2008-11-21 Thread Jeremy McAnally
Try this: script/plugin install http://dev.rubyonrails.com/svn/rails/plugins/auto_complete/ --Jeremy On Thu, Nov 20, 2008 at 9:16 PM, Valentino Lun [EMAIL PROTECTED] wrote: Dear all I would like to install plugin auto_complete but failed.. jruby -S script/plugin discover

[Rails] Re: next and previous methods for a model

2008-11-21 Thread MaD
you could try acts_as_list --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email

[Rails] Re: Apche + SSL Configuration Issue

2008-11-21 Thread Piyush with Rails
i have installed ssl_requirement plugin in my application. i have mongrel cluster and apache configuration installed. On Nov 21, 3:29 am, Freddy Andersen [EMAIL PROTECTED] wrote: James is on to something but you could also remove mongrel from the mix and just test a plain html or gif. How do

[Rails] text_field_with_auto_complete

2008-11-21 Thread Palani Kumar
Hi, I have text_field_with_auto_complete , The problem i faced here is when type the text like firstnamelastname.When i get value of text field in controller i only get the firstname. i couldn't get text value after '' symbol. i guess the symbol is the problem here. but i need to use the

[Rails] Re: how to run linux command in rake file

2008-11-21 Thread Anil Rak
Vamsi Krishna wrote: hi all, i need to grep a word count from a text file and i want to display the count. i need all the above in a rake file , i tried it by using today_count= system(grep -R 'time' oct_10.txt | grep -R 'hi' | wc -l) puts today count is :#{today_count}

[Rails] Re: Pl. suggest some beginning tips for new Merbists.

2008-11-21 Thread Frederick Cheung
On 21 Nov 2008, at 07:43, Web Reservoir wrote: P.S.:- since there is no special section for Merb yet available,in this forum, i am posting it here to get it noticed by Rails and Merb developers. I hope the Merb community will make efforts to start a section here. stick merb group into

[Rails] Re: multiple file upload

2008-11-21 Thread nani
hi Subhadip Chakraborty, iam trying to upload multiple files using attachment_fu plugin i have followed by ur code but i did't get it... can u plz explain it more briefly... its very urgent.. thanks in advance, regards, chowdari On Oct 22, 2:53 pm, Subhadip Chakraborty [EMAIL

[Rails] required segments in routing

2008-11-21 Thread $am
Hi Has anyone an explanation why the following routing is not working? ActionController::Routing::Routes.draw do |map| map.namespace :admin do |admin| admin.connect ':controller/:action/:id' admin.connect ':controller/:action/:id.:format' end map.connect ':controller/:action/:id'

[Rails] Re: how to run linux command in rake file

2008-11-21 Thread Judy Khoo
How can I unsubscribe this? Judy Date: Fri, 21 Nov 2008 10:45:33 +0100 From: [EMAIL PROTECTED] To: rubyonrails-talk@googlegroups.com Subject: [Rails] Re: how to run linux command in rake file Vamsi Krishna wrote: hi all,i need to grep a word count from a text file and i want to

[Rails] Re: text_field_with_auto_complete

2008-11-21 Thread Frederick Cheung
On 21 Nov 2008, at 09:17, Palani Kumar wrote: Hi, I have text_field_with_auto_complete , The problem i faced here is when type the text like firstnamelastname.When i get value of text field in controller i only get the firstname. i couldn't get text value after '' symbol. i guess

[Rails] Re: uninitialized constant ActionController::Caching::Fragments

2008-11-21 Thread Frederick Cheung
On 21 Nov 2008, at 03:12, Richard Schneeman wrote: I've extensively googled this error but haven't been able to come up with any good answers for what is causing it. Rails 2.1.0, Ruby 1.8.6: this is the first two lines in s3_cache.rb: require 's3' class S3Cache

[Rails] Re: help with partial

2008-11-21 Thread Frederick Cheung
On 20 Nov 2008, at 18:59, Jose vicente Ribera pellicer wrote: Sorry. I think this is the solution that you're trying to show me: def expotar #THIS METTOD SHOULD SELECT ALL THE CURRENT TICKETS IN CARTICKET, i think works wroung @cartticket = find_cartticket @[EMAIL PROTECTED]

[Rails] Re: assert XSD validity

2008-11-21 Thread Jarl Friis
Frederick Cheung [EMAIL PROTECTED] writes: Does both as far as I know ( I only had an xsd anyway) Thanks. the xmllint help says --schema schema : do validation against the WXS schema I have never seen WXS as an abreviation for XML Schema Definition files. I now made a small rails test helper

[Rails] Re: assert XSD validity

2008-11-21 Thread Frederick Cheung
On 21 Nov 2008, at 11:13, Jarl Friis wrote: Frederick Cheung [EMAIL PROTECTED] writes: Does both as far as I know ( I only had an xsd anyway) Thanks. the xmllint help says --schema schema : do validation against the WXS schema I have never seen WXS as an abreviation for XML Schema

[Rails] Re: How to install the plugin manually?

2008-11-21 Thread Valentino Lun
Thank for reply It is not working Plugin not found: [http://dev.rubyonrails.com/svn/rails/plugins/auto_complete/;] I think it might due to open_http problem. Anyway, thanks for your help -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Re: rails - 2 buttoms on a FORM

2008-11-21 Thread Frederick Cheung
On 20 Nov 2008, at 20:48, Xd Xd wrote: then, in my FORM there are 2 buttoms : first to select a file to upload buttom=Parcourir second to send the complete Form, buttom=ENVOYER parcourir is for to select a file to upload Isn't this button just going to come for free was part of the

[Rails] has_many (but parent child should be same table )

2008-11-21 Thread Thani Ararsu
i have user table each user have lots of friends how to design ? act_as_tree , will it work ? any other suggestion appreciated. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] TMail now on GitHub

2008-11-21 Thread Mikel Lindsaar
Hello all, I recently (10 minutes ago) put TMail on github. http://github.com/mikel/tmail/tree/master Feel free to join in! Mikel -- http://lindsaar.net/ Rails, RSpec and Life blog --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] How to create Virtual Host In Apache

2008-11-21 Thread Piyush with Rails
Hi All, I am new to server configurations in apache web server. I want to learn how to create virtual hosts in apache server and run configure domains and making domain up. Can anyone guide me here or provide me some useful links ? Thanks, Piyush

[Rails] Re: How to create Virtual Host In Apache

2008-11-21 Thread Andrey Viana
If you go to use Passenger (mod_rails) the process is very simple, just follow these instructions: http://www.modrails.com/install.html :D * Sorry the english, I'm Brazilian On Nov 21, 9:18 am, Piyush with Rails [EMAIL PROTECTED] wrote: Hi All, I am new to server configurations in apache

[Rails] How to Point one domain to another domain

2008-11-21 Thread Piyush with Rails
Hi All, I am new to domain configuration. i want to know if we have two domain www.abc.com and www.xyz.com and i want to point www.abc.com to www.xyz.com then what are the things need to be done for this ? Can anyone guide me here or provide useful links for it ? Thanks, Piyush

[Rails] Re: How to Point one domain to another domain

2008-11-21 Thread Frederick Cheung
On 21 Nov 2008, at 12:22, Piyush with Rails wrote: Hi All, I am new to domain configuration. i want to know if we have two domain www.abc.com and www.xyz.com and i want to point www.abc.com to www.xyz.com then what are the things need to be done for this ? Not really a rails question at

[Rails] how to unescape some html tags

2008-11-21 Thread Shuaib85
Hi there I am using h to escape the html or javascript. I want to unescape some of the html tags for instance il /il how to do that? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] A deployment newbie trouble getting capistno project deploye

2008-11-21 Thread Richard Mcintyre
I have a local project with I am versioning with a remote subversion resitory on which is on the same site as I am wanting to deploy my app. I have spent the last 3 hours trying to work this out, but I am lost I think capsitrano is having trouble connecting to my repository, my deploy.rb is as

[Rails] Re: Distinct selection

2008-11-21 Thread Yan Oleg
Yan Oleg wrote: I have the following code: members.select {|m| m.role.assignable?}.collect {|m| m.role}.sort There are two tables: roles and members. One role record may have many foreign member records. But in this case I get many same roles, I want to apply distinct operation to

[Rails] Re: multiple file upload

2008-11-21 Thread Iros
Have you tried paperclip from thoughtbot? http://www.thoughtbot.com/projects/paperclip/ --~--~-~--~~~---~--~~ 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

[Rails] Re: Distinct selection

2008-11-21 Thread James Mitchell
What exactly are you trying to do? From reading what you wrote, it sounds like you want a list of roles that have not already been assigned. Is that right? -- James Mitchell On Fri, Nov 21, 2008 at 8:59 AM, Yan Oleg [EMAIL PROTECTED] wrote: Yan Oleg wrote: I have the following code:

[Rails] Deployment Howto - REE + Passenger + AWS (EC2, EBS, snapshots)

2008-11-21 Thread kc
Hi there, We are a software firm based in India. We are a 100% FOSS firm and RoR is one of the core focus areas. We contribute to RoR (and FSF)in various ways - code as well as cash donations. We also publish some how-tos and tech issues on our blogs. We are running a production server on AWS.

[Rails] Generating Class Diagram from Models

2008-11-21 Thread Tom Lobato
Hi all! There are several softwares which read a database and shows the tables graphically on the screen (now I`m using Power Architect: http://www.sqlpower.ca/page/architect). Is there something which beyond to read the tables, can understand the relationship beetween it from app/models

[Rails] Generating Class Diagram from Models

2008-11-21 Thread Tom Lobato
Hi all! There are several softwares which read a database and shows the tables graphically on the screen (now I`m using Power Architect: http://www.sqlpower.ca/page/architect). Is there something which beyond to read the tables, can understand the relationship beetween it from app/models

[Rails] Re: Upgrading Rails With InstantRails

2008-11-21 Thread Schalk Neethling
Hi all, thanks for the info. One thing though, from where in the InstantRials directory structure should I run these commands? Does it make a difference or can I simply run it from the root directory of IR? Thanks again, Schalk Norm wrote: Jose vicente Ribera pellicer wrote: Schalk

[Rails] Re: text_field_with_auto_complete

2008-11-21 Thread Frederick Cheung
On 21 Nov 2008, at 15:08, Palani Kumar wrote: Frederick Cheung wrote: On 21 Nov 2008, at 09:17, Palani Kumar wrote: Hi, I have text_field_with_auto_complete , The problem i faced here is when type the text like firstnamelastname.When i get value of text field in controller i only

[Rails] Re: help with partial

2008-11-21 Thread Jose vicente Ribera pellicer
thanks a lot!! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ 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

[Rails] View Question... or is it a model question?

2008-11-21 Thread ressister
I have a partial, that generates a list of categories. I'd like to use the same partial for two different scenarios where data will be coming from different models. In one case, the partial is grabbing category data directly from the Category model. In another case it's grabbing it from an

[Rails] Forcing has_many to left join

2008-11-21 Thread Norman Elton
I'd like for my has_many :conditions clause to refer to columns on both sides of the association. This would require left joining the tables, all the time. See http://www.pastie.org/320700 I've already whipped up a little patch that allows me to drop the primary key relationship, so I can

[Rails] Re: Generating Class Diagram from Models

2008-11-21 Thread Hubert Łępicki
Thanks Rob! That is great script, I didn't use Graphviz before so this was more trouble than installing yor gem ;). However, not sure if it's my fault - or library works like that, generated graph was hard to read and analyze, it also didn't include model attributes. Googling for ruby graphviz

[Rails] Custom form builder errors?

2008-11-21 Thread Robert Kosek
Hello all, I'm new to Ruby and Ruby on Rails, so please have patience with a newbie. I was looking at the HTML produced when there are form errors and realized why my layout keeps breaking. Every label and input with an error gets wrapped with a div tag! So, I've been looking at the source ...

[Rails] Re: Custom form builder errors?

2008-11-21 Thread Frederick Cheung
On 21 Nov 2008, at 17:16, Robert Kosek wrote: Hello all, I'm new to Ruby and Ruby on Rails, so please have patience with a newbie. I was looking at the HTML produced when there are form errors and realized why my layout keeps breaking. Every label and input with an error gets wrapped

[Rails] Re: Custom form builder errors?

2008-11-21 Thread Robert Kosek
Frederick Cheung wrote: You can set ActionView::Base.field_error_proc (take a look insider active_record_helper to see what the default is.) Fred Thanks Fred, just what I needed! Is the tag an object, or the actual string output? -- Posted via http://www.ruby-forum.com/.

[Rails] Re: sqlite3 has gone...

2008-11-21 Thread Dj [EMAIL PROTECTED]
It work for me too. Big thanks for the help. I think I couldn't find it alone. On Nov 21, 3:43 pm, Karel Minarik [EMAIL PROTECTED] wrote: Hi, this is closely related to datamapper and data_objects. It happened to me yesterday when installed Integrity app and it was *quite* nasty (no such

[Rails] Re: How to create Virtual Host In Apache

2008-11-21 Thread Bobnation
I would recommend SliceHost's articles on anything from Ruby on Rails installations to Apache configurations to get a handle on things. http://articles.slicehost.com/ On Nov 21, 6:27 am, Andrey Viana [EMAIL PROTECTED] wrote: If you go to use Passenger (mod_rails) the process is very simple,

[Rails] Re: sqlite3 has gone...

2008-11-21 Thread Dj [EMAIL PROTECTED]
After reflecting here what iI think, In fact when you use rubygems it add all lib folder of each gem to the load path. So when you require sqlite3 the system try loading all or the first file the file named sqlite3 exinsting in the load path and loading a dll file on a system different than

[Rails] Re: Generating Class Diagram from Models

2008-11-21 Thread Rob Biedenharn
model_graph doesn't do the attributes on purpose. My need was to avoid redrawing the associations at a time on a particular project where they were driving me a bit crazy. The use of decorated edges to denote the kind of association is one thing that I didn't find elsewhere. If you

[Rails] Re: windows tail development.log

2008-11-21 Thread Rick
Yet another choice, if you have to work under MotherShip... http://www.research.att.com/sw/tools/uwin/ Rick On Nov 20, 12:07 pm, Rafael [EMAIL PROTECTED] wrote: Hi unfortunately I have to develop on a windows machine from time to time. But there is a little problem, mostly for debugging.

[Rails] Re: Custom form builder errors?

2008-11-21 Thread Frederick Cheung
On 21 Nov 2008, at 17:42, Robert Kosek wrote: Frederick Cheung wrote: You can set ActionView::Base.field_error_proc (take a look insider active_record_helper to see what the default is.) Fred Thanks Fred, just what I needed! Is the tag an object, or the actual string output? Dunno.

[Rails] Re: Distinct selection

2008-11-21 Thread James Mitchell
Ok, maybe we misunderstood each other. If you want a list of roles, why would you go through the members table to get it? You can just do Roles.find(:all).map(:name) I'm not sure what you doing with assignable?. It seems to be important to you, but you have not explained what it is supposed

[Rails] mongrel problems

2008-11-21 Thread Ank Ag
Hi, I am using mongrel on win2k. after i start mongrel only one engine handles all the request so the requests are served serially. How can i run multiple instances of mongrel so that requests are directed to the mongrel instance which is not busy. Another thing is that sometimes if the request

[Rails] Re: View Question... or is it a model question?

2008-11-21 Thread James Mitchell
That's probably the 'cleanest' (since non-ugliest isn't really a word) option. The next big question is how far do you take it? How you actually implement it is where some people tend to like one way over the other. You could simply alias the name to a delegated method and call it done. Or,

[Rails] Re: mongrel problems

2008-11-21 Thread James Mitchell
You need to run a mongrel cluster and use some kind of balancer. I develop on Mac and deploy to Linux, so I always go with HAProxy. I tried googling for balancing software for Windows, but don't really have time to pick through the results, not sure I would care if I did find one, because I

[Rails] Re: has_many (but parent child should be same table )

2008-11-21 Thread Philip Hallstrom
i have user table each user have lots of friends how to design ? act_as_tree , will it work ? You could, but it would be messy since you and I could be friends so who has many? Start here: http://agilewebdevelopment.com/plugins/search?search=friends Find one that only requires a

[Rails] Re: problem getting rails1 app running under rails2

2008-11-21 Thread wpollans
OK, yet again - putting layout 'standard' in EACH of my controllers works! Having layout 'standard' in ApplicationController but not in individual controllers does not work. So, it seems that the individual controllers are not inheriting from ApplicationController as I thought they should (and

[Rails] Phusion Passenger Version Check

2008-11-21 Thread Dan Paul
Hello, Sry if this sounds stupid, but how do I check to see what version of phussion passenger I am running, I did a recent upgrade and want to make sure the new version is in use. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Mailer attach files that are posetd in a respository on the web

2008-11-21 Thread [EMAIL PROTECTED]
I have set up my application to send e-mails along with attachments, however I would like the ability for the browse to search a file sharing repository that we have posted on the web. Right now it just searches and uploads files I have on my desktop. Has anyone had any success attaching files

[Rails] Live Clock and Date on Rails

2008-11-21 Thread The Neurochild
Hello, guys. Is there any example of a live clock and date on Rails? I'm using one made on Javascript, but the main problem i'm having is when using any Linux distro, which seems to show date incorrectly. For an example, instead of today, it shows tomorrow date as today's date. As I know JS is

[Rails] Updating Rails in Aptana RadRails

2008-11-21 Thread Schalk Neethling
Hey all, Rephrasing my previous question a little. How do I update the current Rails version when using Aptana RadRails as the IDE? Thanks, Schalk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Free software projekt seeking for help

2008-11-21 Thread [EMAIL PROTECTED]
Hey everyone, I am the developer of ScopePort: A free remote monitoring server. Yes, another one. Please don't ask why there is a need for another remote monitoring server. Check the website of ScopePort or this blog post for the answer of your not asked question:

[Rails] Re: Iterate through a table record

2008-11-21 Thread Bill McGuire
Lennart Koopmann wrote: 2008/11/21 Bill Mcguire [EMAIL PROTECTED] Is there a way to increment @race.leg so I don't have to write @race.leg1 [EMAIL PROTECTED] ? Can you change the database structure? I think it would make more sense to have a legs table in this case. Then you could

[Rails] Re: Updating Rails in Aptana RadRails

2008-11-21 Thread James Mitchell
You will probably get a quicker answer if you ask on the Aptana RadRails mailing list. -- James Mitchell On Fri, Nov 21, 2008 at 4:31 PM, Schalk Neethling [EMAIL PROTECTED] wrote: Hey all, Rephrasing my previous question a little. How do I update the current Rails version when using

[Rails] Re: Free software projekt seeking for help

2008-11-21 Thread Ernesto Rocha
How can i help you? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to

[Rails] Re: Getting the number of years between two dates

2008-11-21 Thread Pardee, Roy
You can also do Time.now.year - other_date.year Cheers, -Roy -Original Message- From: rubyonrails-talk@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gsterndale Sent: Thursday, November 20, 2008 11:26 PM To: Ruby on Rails: Talk Subject: [Rails] Re: Getting the number of

[Rails] Re: Free software projekt seeking for help

2008-11-21 Thread Lennart Koopmann
2008/11/22 Ernesto Rocha [EMAIL PROTECTED] How can i help you? Thanks for your reply! I am needing help for almost everything related to the Web Interface. :) - Generally forms to fill the database the server is reading and reading. A dashboard with the health values of monitored servers and

[Rails] Switching the version of Rails that an app uses

2008-11-21 Thread RichardOnRails
Hi All, I’ve got a few versions or Rails installed and I'd like to run an App I’m developing with various versions of Rails. I heard of two ways to switch the version of Rails that an app uses: 1. Use GitHub as described by http://kylecordes.com/2008/04/30/git-windows-go/ . But that requires

[Rails] Re: Live Clock and Date on Rails

2008-11-21 Thread The Neurochild
On 21 nov, 19:14, Hassan Schroeder [EMAIL PROTECTED] wrote: In any case, it works fine on my OS X box and an Ubuntu VM, so I'd suggest you check the TZ settings on the systems you're seeing a problem on. As I said, even though I'm in Venezuela, the timezone in which my computer is set, I'm

[Rails] Re: Live Clock and Date on Rails

2008-11-21 Thread James Mitchell
You don't seem to understand how this all works together. Your rails code on the server has nothing to do with the javascript that runs in the browser other than what html and javascript that it might generate. There is nothing you can do in Rails that you also can't just hard code in a simple

[Rails] Re: Live Clock and Date on Rails

2008-11-21 Thread The Neurochild
I was hoping you can show me something. I know a live clock that works with PHP/JS exists. I've seen it. I'll stop right here, it seems there's nothing available here. I give up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: Iterate through a table record

2008-11-21 Thread Harold
A legs table seems more flexible, however: tr % (1..36).each do |p| % tdLeg %= @race.send(('leg' + p).to_sym) %/td % end % /tr On Nov 21, 5:59 pm, Bill McGuire [EMAIL PROTECTED] wrote: Lennart Koopmann wrote: 2008/11/21 Bill Mcguire [EMAIL PROTECTED] Is there a way to increment

[Rails] Re: Best Modal Popup for Rails

2008-11-21 Thread David
Hey, I am trying to get RedBox working but have run into some issues. When I click on a Redbox link, everything works except that a white blank div element appears at the top of the screen in the middle no matter what. I thought it may be an issue with the installation b/c I noticed that the

[Rails] Re: A deployment newbie trouble getting capistno project dep

2008-11-21 Thread Jeff Pritchard
I think your set :repository line is too short. It needs to reference the actual directory in the svn repo where your app and other rails files live. I'm thinking in your case that might be more like: set :repository, svn://mackstar.net/mainrepo/mackstar or maybe something like: set

[Rails] Introducing CachedAssociatedAttributes

2008-11-21 Thread tim
Hi, just wanted to let you know, that I released a little plugin on github: http://github.com/tf/cached_associated_attributes It automatically stores attributes of an associated object in the model's table. This can help reduce the need for :include. See README. Let me know what you think.

[Rails] Re: A deployment newbie trouble getting capistno project dep

2008-11-21 Thread Richard Mcintyre
Jeff Pritchard wrote: I think your set :repository line is too short. It needs to reference the actual directory in the svn repo where your app and other rails files live. I'm thinking in your case that might be more like: set :repository, svn://mackstar.net/mainrepo/mackstar or

[Rails] Re: Iterate through a table record

2008-11-21 Thread Bill McGuire
Harold wrote: A legs table seems more flexible, however: tr % (1..36).each do |p| % tdLeg %= @race.send(('leg' + p).to_sym) %/td % end % /tr On Nov 21, 5:59�pm, Bill McGuire [EMAIL PROTECTED] Harold...worked just like I wanted. The only thing I had to do was add '.to_s' after

[Rails] Re: Switching the version of Rails that an app uses

2008-11-21 Thread RichardOnRails
Hi All, I should add that I don't have VendorRails installed. All I see under the vendor folder is a plugins folder, which is empty. Best wishes, Richard On Nov 21, 6:23 pm, RichardOnRails [EMAIL PROTECTED] wrote: Hi All, I’ve got a few versions or Rails installed and I'd like to run an

[Rails] Re: named_scope lambda syntax

2008-11-21 Thread Ed
never mind, I sorted it out. Solution: named_scope :no_score, lambda { |compare| { :conditions = #{compare} IS NULL }} On Nov 21, 10:12 pm, Ed [EMAIL PROTECTED] wrote: How would I pass an attribute name into a named_scope lambda? I want to be able to search an active record class for nil