[Rails] Re: Checking for Functional Site

2009-01-06 Thread Eric
cron wget to run every minute pulling HEAD requests and email you if there's a 404 or 500 or whatever you get when it's busted. -eric On Jan 5, 11:11 pm, Freddy Andersen wrote: > Sounds like you need a new hosting location!! Your statement about > Rails is a new and that makes it ok to F with

[Rails] Re: store parameters variable into database

2009-01-06 Thread Eric
if those colons (":") are in the db, you have almost-readymade json. -eric On Jan 5, 7:05 pm, Ukrit Himakoon wrote: > rp8 -_- wrote: > > Ukrit Himakoon wrote: > >> rp8 -_- wrote: > >>> One way is to save a serialized hash into the db and you can deserialize > >>> the saved hash object back to p

[Rails] SSL plugin

2009-01-06 Thread Gilbert Gift Siima
HAppy new year. I was trying to turn on SSL. On trying to install the plugin for ssl I get an error message that the plugin was not found. Any one with an alternative can help me out. This is what I used to instalthe plugin on my version 1.8.6 ruing on a windows platform. ruby script/plugin in

[Rails] Newbie automation testing web services with ruby

2009-01-06 Thread winstan
Hi all, First post on this group and I hope you guys are as helpful as the other guys have been for me on the watir group. Fingers crossed. I have been successfully making HTTP POST protocol requests via an in house GUI using watir REXML to parse and validate the data, however now I wish to make

[Rails] RoR, Apache2, fcgid and ubuntu...

2009-01-06 Thread jeba . momin
Hi. I'm trying to deploy my rails application on ubuntu server using apache2 and fcgid..but have not been successful.. I am using ruby 1.8.6, rails 2.2.2 and fcgi 0.8.7 gem... I am able to start apache successfully and view the Aptana RadRails welcome page..But giving my controller's name gives me

[Rails] Empty collection returned for model with has_many relationship

2009-01-06 Thread bigsley
I have two models: Exercise, and Step. Exercise has many steps. Basically, when I add a step to a new exercise's "steps" array, it saves, and everything works. If I then get the exercise from the model (via find), clear its array, then add the step again, I cannot save the step to the exercise.

[Rails] Re: How to test a plugin

2009-01-06 Thread Frederick Cheung
On Jan 6, 7:41 am, Arthur Chan wrote: > I can run functional test now, thanks!! > > A problem I found in running the test is that it does not load the > route.rb so that it fails in some action --- e.g. assets_path/_url not > defined. > > Any clue to it is appreciated. > You need to define any

[Rails] RoR, Apache2, fcgid and ubuntu...

2009-01-06 Thread ZebaMomin
Hi. I'm trying to deploy my rails application on ubuntu server using apache2 and fcgid..but have not been successful.. I am using ruby 1.8.6, rails 2.2.2 and fcgi 0.8.7 gem... I am able to start apache successfully and view the Aptana RadRails welcome page..But giving my controller's name gives

[Rails] Re: How to test a plugin

2009-01-06 Thread Arthur Chan
Wow, Awesome, it works now. Thanks for the quick and useful help. Arthur Frederick Cheung wrote: > On Jan 6, 7:41�am, Arthur Chan > wrote: >> I can run functional test now, thanks!! >> >> A problem I found in running the test is that it does not load the >> route.rb so that it fails in some a

[Rails] Re: Apache, REMOTE_USER, and Mongrel

2009-01-06 Thread Nara Simha
Cayce Balara wrote: > Even non-help helps, at least I can move on to other options and stop > banging my head against this mad bugger's wall. > > thanks for the info. > > c. > > > Charles Brian Quinn wrote: >> I never figured out how to do any of apache's auth schemes on anything >> other tha

[Rails] Re: newbie trying self-referencing :through via REST model

2009-01-06 Thread itsastickup
I have a need for REST (as well as other things), as mentioned, and for that I require the go-between model. In anycase presumably my original question does have an answer, no? Perhaps :through does not work self-referentially, although I would be surprised. But the docs don;t have it and blogs h

[Rails] Different class for a data_select

2009-01-06 Thread Kpitn
Hi, I am using this syntax : f.date_select :birth_date, :class=>"test" I want to use a width different for the 3 select, but the class is not different for the three select. Is there a way to apply a different width ? thx --~--~-~--~~~---~--~~ You received thi

[Rails] Re: SSL plugin

2009-01-06 Thread NAYAK
Hi, Could you share the error message what you receive while executing that command -NAYAK On Tue, Jan 6, 2009 at 1:46 PM, Gilbert Gift Siima wrote: > > HAppy new year. > > I was trying to turn on SSL. On trying to install the plugin for ssl I > get an error message that the plugin was not foun

[Rails] Need help on rjs calls and partials

2009-01-06 Thread sa 125
Hey all - What I'm trying to accomplish is creating my own edit in place on a set of data. Right now I'm just toying with some nonsense app, but when I figure it out it'll be put to good use. I divide my code between the view, the partial, the controller and the rjs template. For the sake of exam

[Rails] How to access text helper and url helper methods in model

2009-01-06 Thread Sunny Bogawat
Hi, I want to access TextHelper and UrlHelper methods in my model so how i am able to access it ? I was included following helper in my model but still it is not working? also for accessing these helper method w need to give external reference? E.g. class Xyz incl

[Rails] How to Implement ACL (Access Control List) in ROR?

2009-01-06 Thread shahroon ali
Hey All, Could any body tell me about implementation of ACL in RoR, becasue i was searching on it for last two days but I haven't got anything very helpful. I have downloaded the restful_authentication plugin for it, but I dont have any tutorial about using this plugin. Or tell me if there is any o

[Rails] Define id in xml

2009-01-06 Thread Brijesh Shah
Hi I like to generate xml like abc abc Here I want to display id in each user tag. So How can I do that? Thanks Brijesh Shah -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: Newbie automation testing web services with ruby

2009-01-06 Thread Frederick Cheung
On 6 Jan 2009, at 05:17, winstan wrote: > > Hi all, > > First post on this group and I hope you guys are as helpful as the > other guys have been for me on the watir group. Fingers crossed. > You might want to try the ruby talk list as this isn't actually a rails question. Fred > I have been

[Rails] Re: How to Implement ACL (Access Control List) in ROR?

2009-01-06 Thread Christoph Jasinski
Hi Shahroon, what you could do is to register at http://www.buildingwebapps.com/ and take the Learning Rails free online-course. That's what I did. In one of the screencasts they explain how to do Login and all that stuff. It's pretty easy. Good luck and hopefully I could help. Chris --~--~

[Rails] Re: SSL plugin

2009-01-06 Thread Gilbert Gift Siima
The error mesage I get is Plugin not found: ["ssl_requirement"] On 1/6/09, NAYAK wrote: > Hi, > > Could you share the error message what you receive while executing that > command > > -NAYAK > > On Tue, Jan 6, 2009 at 1:46 PM, Gilbert Gift Siima > wrote: > >> >> HAppy new year. >> >> I was tryin

[Rails] Cloning ActiveRecord objects

2009-01-06 Thread Rob Lacey
Hi there, I've been working on a solution to try and fix a problem I am getting with the Interlock plugin. However, my quick solution was to clone my ActiveRecord object and store the clone. I now realise that cloning ActiveRecord objects merely extracts the attributes and creates a new objec

[Rails] Re: Rails apps packaging

2009-01-06 Thread Joshua Partogi
Okay I've got it now. Thanks heaps. Cheers On Jan 6, 10:27 am, Ryan Bigg wrote: > Bobnation means config/environment.rb, not application.rb > - > Ryan Bigg > Freelancerhttp://frozenplague.net > > On 06/01/2009, at 8:39 AM, Bobnation wrote: > > > > > Have you configured you application.rb so

[Rails] Security framework

2009-01-06 Thread Joshua Partogi
Dear all, Could anyone refer me a good security framework in rails for authentication and authorization please? Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

[Rails] Re: Security framework

2009-01-06 Thread Ryan Bigg
http://github.com/ezmobius/acl_system2 - Ryan Bigg Freelancer http://frozenplague.net On 06/01/2009, at 10:55 PM, Joshua Partogi wrote: > > Dear all, > > Could anyone refer me a good security framework in rails for > authentication and authorization please? > > Thanks in advance > >

[Rails] Re: Define id in xml

2009-01-06 Thread Mark Thomas
On Jan 6, 5:53 am, Brijesh Shah wrote: > Hi > > I like to generate xml like > > >     >           abc >     >     >           abc >     > > > Here I want to display id in each user tag. So How can I do that? require 'builder' builder = Builder::XmlMarkup.new(:indent => 2) xml = builder.use

[Rails] A question about render

2009-01-06 Thread Zhao Yi
I faced a problem about render. This is my view page: <%= render :partial=>'test1'%> In _test1.html.erb: <%=select_tag 'database_select', options_for_select(@databases)%> <%=text_field_tag 'table', @table_name,:size=>30%> You can see that in the partial page, I use and element

[Rails] How to pass and not a parameter to a link?

2009-01-06 Thread Xdmx Xdmx
Hi, i've a page where when a params[:something] is passed all/some the urls in that page must have the params[:something] too, but when there isn't it shouldn't appear. I've tried with: report_url(params[:id], :something => params[:something]) this works when there is the params[:something], but

[Rails] [JOBS] France, Nantes, Développ eur web (H/F)

2009-01-06 Thread Kpitn
L’entreprise La société UNEEK Sarl est une startup Nantaise dans le domaine des TIC. Co-incubés par Atlanpole (Technopole de Nantes Atlantique) et Audencia (Ecole de Management de Nantes), nous bénéficions également de l’accompagnement de Nantes Initiative ainsi que du support d’OSEO. Notre posit

[Rails] uniqueness on has_many associations

2009-01-06 Thread tron
Dear List, This may not be rails unique but what is the best practice to validate the uniqueness of has_many associations. In particular the models are class Word end class PhraseComponent belongs_to :word belongs_to :dictionary_entry acts_as_list :scope => :dictionary_entry end class

[Rails] Re: Empty collection returned for model with has_many relationship

2009-01-06 Thread Mark Reginald James
Mark Reginald James wrote: I take this back: > It's only being manifest though because of the > unnecessary saves you're doing, meaning that > the problem has probably been rarely seen. The problem has been exposed by the new ActiveRecord change detection code. -- Rails Wheels - Find Plugins,

[Rails] Slow rendering (column statistics) after migration

2009-01-06 Thread Albert
After migrating to a new system, most parts work fine and perform as before. But the xml template where I use column statistics performs very bad: 8 seconds instead of 0.2 seconds on the old system. There I use statements like: 'xml.min_resolution(satellite.sensors.minimum (:min_resolution))'. Dat

[Rails] Re: Slow rendering (column statistics) after migration

2009-01-06 Thread Frederick Cheung
On Jan 6, 12:55 pm, Albert wrote: > After migrating to a new system, most parts work fine and perform as > before. But the xml template where I use column statistics performs > very bad: 8 seconds instead of 0.2 seconds on the old system. There I > use statements like: 'xml.min_resolution(satel

[Rails] Re: Empty collection returned for model with has_many relationship

2009-01-06 Thread Mark Reginald James
bigsley wrote: > I have two models: > > Exercise, and Step. Exercise has many steps. > > Basically, when I add a step to a new exercise's "steps" array, it > saves, and everything works. If I then get the exercise from the model > (via find), clear its array, then add the step again, I cannot sa

[Rails] Re: Empty collection returned for model with has_many relationship

2009-01-06 Thread Frederick Cheung
On 6 Jan 2009, at 12:52, Mark Reginald James wrote: >> >> -- >> >> What is going on here? This is so anti-intuitive - how could a bug >> like this exist and not have been detected hundreds of times before? > > Yes, I would regard this as a Rails bug. > The clear method is not setting the

[Rails] File upload time-out?

2009-01-06 Thread Richard
I have an app that uploads large mp3 files (teaching), of around 30 megs or so. I am running my app on a mongrel cluster behind nginx. The file uplaods seem to hang. Is there a max execution time setting in rails, mongrel or nginx that is causing this? Thanks Richard --~--~-~--~~---

[Rails] Re: Checking for Functional Site

2009-01-06 Thread Fernando Perez
Eric wrote: > cron wget to run every minute pulling HEAD requests and email you if > there's a 404 or 500 or whatever you get when it's busted. > > -eric You will quickly get your inbox overflooded in such case. Using a remote service like HopToad or GetExceptional is better. If anyone knows ab

[Rails] Re: Cloning ActiveRecord objects

2009-01-06 Thread Harold
Try your_active_record_instance.dup instead of .clone. On Jan 6, 6:43 am, Rob Lacey wrote: > Hi there, > > I've been working on a solution to try and fix a problem I am getting > with the Interlock plugin. However, my quick solution was to clone my > ActiveRecord object and store the clone. I no

[Rails] Generate random password in Rails

2009-01-06 Thread Anatoly Mikhailov
http://www.railsgeek.com/2009/1/6/generate-random-password-in-rails I am using Restful_authentication plugin for one of my projects. As part of my user creation workflow, system should to generate a random password for the new user. So, look at my password creation behaviour: * generate uncr

[Rails] :after_update_element and text_field_with_auto_complete

2009-01-06 Thread Peter Jeppesen
Hi! I'm on Rails 2.2.2 and using text_field_with_auto_complete which works fine. Now I want to use :after_update_element to send some data back to the server when my text field is updated. I have the following code in my view: <%= text_field_with_auto_complete :company, :name, {}, {:after

[Rails] Why render doesn't work

2009-01-06 Thread Zhao Yi
I use render in a view page like this: <% form_for :project do |form| %> <%= select_tag:project_selection,options_for_select(@project_names) %> <%= observe_field :project_selection, :frequency => 0.5, :update => 'project_version_ajax', :url => {:action => 'update

[Rails] Re: Quick one! -- Project Messages!!

2009-01-06 Thread Sazima
Ryan, If I understood correctly, he already has an index action that shows truncated messages. He asked for a 2nd page to show the whole content of all messages. He would probably be better off using a nested route for only 1 action (index) and retrieving the rest of the message asynchronously w

[Rails] Re: SSL plugin

2009-01-06 Thread Fernando Perez
>>> >>> ruby script/plugin install ssl_requirement >>> >>> Thank you In you application controller file add: include SslRequirement Best regards, -- Video training screencasts at http://www.digiprof.fr -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~

[Rails] How to reference parent object when using sub-resources

2009-01-06 Thread POOCH
Hi, I'm building my first Rails application and have hit a problem using sub-resources. My model includes a Deposit that has_many Payments. So routes.rb has a line: map.resources :deposits, :has_many => :payments I've generated the scaffolding for Payments and I am able to go from a pa

[Rails] Re: Empty collection returned for model with has_many relationship

2009-01-06 Thread Mark Reginald James
Frederick Cheung wrote: > Even if it were setting it on the in memory object it wouldn't be in > memory object you think it is. Because a was reloaded, the objects in > a.steps are not the objects b & c (although they do correspond to the > same database rows). The problem happens before a

[Rails] javascript momentarily displayed on screen?...

2009-01-06 Thread Shilo Ayalon
what could be a reason for my js to be displayed on the screen for a second before it catches and does what it's supposed to? I've had this happen when I call page.reload inside render :update block... <%= link_to_remote 'reload', :update => 'my_div', :url =>

[Rails] Prawn: text at horizontal middle of the page

2009-01-06 Thread Tom Lobato
How to achieve this, like a horiz. align to center? I`m trying Prawn to generate PDFs, but having a problem to place a short text (3 words) at the horiz. middle of the page. This code places the text 2 or 3 centimeters right from the middle. Prawn::Document.generate('public/' + dir + "certifica

[Rails] Re: Why render doesn't work

2009-01-06 Thread Frederick Cheung
On 6 Jan 2009, at 14:07, Zhao Yi wrote: > > I use render in a view page like this: > > <% form_for :project do |form| %> > > > > <%= > select_tag:project_selection,options_for_select(@project_names) > %> > <%= > observe_field :project_selection, >:frequency => 0.5, >:update

[Rails] Re: javascript momentarily displayed on screen?...

2009-01-06 Thread Frederick Cheung
On 6 Jan 2009, at 14:22, Shilo Ayalon wrote: > > what could be a reason for my js to be displayed on the screen for a > second before it catches and does what it's supposed to? I've had this > happen when I call page.reload inside render :update block... > Don't pass :update to link_to_remote if

[Rails] Re: store parameters variable into database

2009-01-06 Thread cpr
http://significantbits.wordpress.com/2008/01/29/yaml-vs-marshal-performance/ --~--~-~--~~~---~--~~ 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@googlegr

[Rails] Re: How to reference parent object when using sub-resources

2009-01-06 Thread POOCH
Nevermind -- I've found the answer. The link_to should be coded as: <%= link_to 'Add a payment', new_deposit_payment_path(@deposit) %> For me, magic is often hard to follow. On Jan 6, 9:18 am, POOCH wrote: > Hi, > > I'm building my first Rails application and have hit a problem using >

[Rails] Re: Why render doesn't work

2009-01-06 Thread Zhao Yi
Frederick Cheung wrote: > > I don't believe it's legal HTML to have a div there. > > Fred Why? Could you tell me what wrong with my code? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[Rails] Re: Why render doesn't work

2009-01-06 Thread Frederick Cheung
On 6 Jan 2009, at 14:53, Zhao Yi wrote: > > Frederick Cheung wrote: >> >> I don't believe it's legal HTML to have a div there. >> >> Fred > > Why? Could you tell me what wrong with my code? > That's just the way it is, divs aren't allowed there (just as you can't do either). Try putting your

[Rails] Re: Quick one! -- Project Messages!!

2009-01-06 Thread Dave Smith
Ryan Bigg wrote: > Woah. > > Firstly, why are you calling .collect on project.messages and > everything? This is unnecessary. > > Secondly, if messages is an association for a project it would be > better if you used nested routes, as explained here: > http://guides.rails.info/routing_outside_i

[Rails] mysql error on server

2009-01-06 Thread jabauer
I just updated to Rails 2.2.2 from 1.2.6 yesterday. Today I reinstalled the mysql gem. Now when I try to run script/server the server starts, but when I try to access my database in a browser window get the following error: dyld: lazy symbol binding failed: Symbol not found: _mysql_init Refe

[Rails] New cheat sheet: Jump Start Credit Card Processing in Ruby

2009-01-06 Thread Amy Hoy
Hey guys... it's me ;) I've come out of a long cheat sheet-free period! I want to share with you my new, really massive "cheat sheet" on credit card processing: * the process, * how it works, * what you need to get the right accounts, and of course, * how to get started with ActiveMerchant. Do

[Rails] Re: New cheat sheet: Jump Start Credit Card Processing in Ruby

2009-01-06 Thread Jodi Showers
Thank you Amy - always a (brutal) and mysterious process. Jodi On 6-Jan-09, at 10:46 AM, Amy Hoy wrote: > > Hey guys... it's me ;) > > I've come out of a long cheat sheet-free period! > > I want to share with you my new, really massive "cheat sheet" on > credit > card processing: > > * the pr

[Rails] Calling System on winows batch file

2009-01-06 Thread Ryan Mckenzie
Hello everyone, I'm using InstantRails 2.0 on a Windows XP 32 bit system. I'm developing a Rails application where I would like to execute a .bat file I've had a look around and this piece of code is suppose to do the trick but it does not seem to work. system('path/to/file.bat') Do I need to

[Rails] Re: New cheat sheet: Jump Start Credit Card Processing in Ruby

2009-01-06 Thread Patrick Doyle
Hi Amy, Without having looked at your cheat sheet yet, nor at any code that might be out there for validating credit card numbers, can I put in a request to eliminate one of my (many, I'm sure) pet peeves... Did/can you address the issue of allowing the end user to put spaces in credit card number

[Rails] Re: Calling System on winows batch file

2009-01-06 Thread Patrick Doyle
On Tue, Jan 6, 2009 at 11:07 AM, Ryan Mckenzie < rails-mailing-l...@andreas-s.net> wrote: > > Hello everyone, > > I'm using InstantRails 2.0 on a Windows XP 32 bit system. > > I'm developing a Rails application where I would like to execute a .bat > file > > I've had a look around and this piece o

[Rails] Strange error...

2009-01-06 Thread Jej
Hi all, I get a really strange error... I have 2 simple models: class Membre < ActiveRecord::Base has_one :adhesion end class Adhesion < ActiveRecord::Base belongs_to :membre end The relation works well in the console. I can find a Membre and get its Adhesion, or find an Adhesion and get t

[Rails] Re: Calling System on winows batch file

2009-01-06 Thread Mohit Sindhwani
Ryan Mckenzie wrote: > Hello everyone, > > I'm using InstantRails 2.0 on a Windows XP 32 bit system. > > I'm developing a Rails application where I would like to execute a .bat > file > > I've had a look around and this piece of code is suppose to do the trick > but it does not seem to work. > > s

[Rails] Re: New cheat sheet: Jump Start Credit Card Processing in Ruby

2009-01-06 Thread Xie Hanjian
Hi, Very clear and detailed document, great pdf :) Thanks, Jan > --~--~-~--~~~---~--~~ > 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.

[Rails] [resolved] Strange error...

2009-01-06 Thread Jej
Well, sorry to make noise! The solution is here: http://www.railsformers.com/article/activerecord-timezone-settings-bug It seems to be a bug. I just added config.active_record.default_timezone = :utc in my env.rb... Jej --~--~-~--~~~---~--~~ You received this

[Rails] rcov not detecting existing and valid test cases

2009-01-06 Thread Vahagn Hayrapetyan
Hello,- got a question regarding strange behavior by rcov. I have a gyms_controller.rb with the usual group of CRUD methods. Each one of them is being tested in the gyms_controller_test.rb: $ ruby test/functional/gyms_controller_test.rb Loaded suite test/functional/gyms_controller_test Started

[Rails] Re: Empty collection returned for model with has_many relationship

2009-01-06 Thread Frederick Cheung
On Jan 6, 2:21 pm, Mark Reginald James wrote: > Frederick Cheung wrote: > > Even if it were setting it on the in memory object it wouldn't be in   > > memory object you think it is. Because a was reloaded, the objects in   > > a.steps are not the objects b & c (although they do correspond to th

[Rails] Re: Empty collection returned for model with has_many relationship

2009-01-06 Thread Ar Chron
Mark Reginald James wrote: > Frederick Cheung wrote: > >> Even if it were setting it on the in memory object it wouldn't be in >> memory object you think it is. Because a was reloaded, the objects in >> a.steps are not the objects b & c (although they do correspond to the >> same database r

[Rails] AR deep clone

2009-01-06 Thread Michael Rigart
Hi all, I'm having problems with cloning an ActiveRecord Object. The object consists of multiple child objects, so when I use the normal clone method, it only clones the attributes of the parent object. Could someone help me out telling me how I can clone the child objects as wel? I have tried l

[Rails] Re: New cheat sheet: Jump Start Credit Card Processing in R

2009-01-06 Thread Amy Hoy
Patrick: > Did/can you address the issue of allowing the end user to put spaces in > credit card numbers? Oh, great idea. I hate that too! I didn't think of it when I was writing, but I will definitely add it, one way or another. Perhaps we can add it to the JavaScript as a way of encouraging

[Rails] Web framework for embedded appliance?

2009-01-06 Thread Florian Dejako
Sorry for the off-topic post, but I figured someone here might know: I'm looking for a Ruby web framework that is suitable for developing a web service on an embedded network appliance. RAM is an issue, but probably not as much as hard drive space. Too many requirements likely make Rails a

[Rails] Re: Web framework for embedded appliance?

2009-01-06 Thread Petite Abeille
On Jan 6, 2009, at 8:11 PM, Florian Dejako wrote: > Sorry for the off-topic post, but I figured someone here might know: > I'm looking for a Ruby web framework that is suitable for developing a > web service on an embedded network appliance. RAM is an issue, but > probably not as much as hard dr

[Rails] Rails Hosting

2009-01-06 Thread pete
Hi- I've done some searching, but since there are many options, I'd like to get some feedback from the group at large. I have a couple of Rails apps that will likely not see too much traffic and I would like to find a public home for them. Since these sites are not generating any revenue for me

[Rails] Re: Empty collection returned for model with has_many relationship

2009-01-06 Thread bigsley
So is this a known bug? Is this fixed in 2.2.2? I'm currently running rails 2.1.1. On Jan 6, 12:32 pm, Frederick Cheung wrote: > On Jan 6, 2:21 pm, Mark Reginald James wrote: > > > Frederick Cheung wrote: > > > Even if it were setting it on the in memory object it wouldn't be in   > > > memory

[Rails] Re: New cheat sheet: Jump Start Credit Card Processing in R

2009-01-06 Thread Fernando Perez
> Anybody else with ideas, suggestions, or questions... let 'er rip! > > Oh, and if it helped you, I wouldn't mind hearing that either ;) > > Cheers, > > Amy What did you use to type the mini-book? It looks fantastic and is much easier to read than a boring manual! Is it LateX? OpenOffice? M$

[Rails] items.destroy doesn't work

2009-01-06 Thread scott
why doesn't this work items.destroy if items = find(:all, :conditions => ...) right now i have this that works, but it seems ugly and inefficient. if items = find(:all, :conditions => ...) items.each do |item| item.destroy end end there must be a better way --~--~-~--~~-

[Rails] Re: Can we create FTP users within Rails?

2009-01-06 Thread Jb Li
Thank you all! (I was distracted by another project from my angry boss, but I am still alive and watching this forum). I am actually resuming my project of allowing a end-user (account) to able able to FTP-up images right from their security cameras. I don't mean web-cams from kids, but real

[Rails] Styling rails elements

2009-01-06 Thread Ryan Ororie
I'm having some trouble with styling my views. Here is a particular snippet that I think illustrates well: <%= @tour_request.booked_datetime ? "Confirmed For: #...@tour_request.booked_datetime_string} ":"Date and time requested: #...@tour_request.daterequested} | #...@tour_request.preferredtime_

[Rails] Re: Rails Hosting

2009-01-06 Thread John Yerhot
Sounds like a cheap shared host like Dreamhost would work ok for you. On Jan 6, 1:35 pm, pete wrote: > Hi- > > I've done some searching, but since there are many options, I'd like > to get some feedback from the group at large. > > I have a couple of Rails apps that will likely not see too much

[Rails] Re: Calling System on winows batch file

2009-01-06 Thread Ryan Mckenzie
Hi guys, Thanks for your input. I tried using the console and it seems that ruby does not like the content that is in the .bat file for some reason (but the command does work). The bat file contains this line of text which executes a .exe file to open along with the default.ard file as being

[Rails] Re: Calling System on winows batch file

2009-01-06 Thread Jodi Showers
Ryan - On 6-Jan-09, at 3:59 PM, Ryan Mckenzie wrote: > > Hi guys, > Thanks for your input. I tried using the console and it seems that > ruby > does not like the content that is in the .bat file for some reason > (but > the command does work). > > The bat file contains this line of text whic

[Rails] Re: Rails Hosting

2009-01-06 Thread pete
Ok, I'll check it out. And I guess the main thing I am looking for is a sandbox where I can test remote deploys with Cap and Git, setup the database, basically anything I would do with a "production" level app. Thanks again for the suggestion, I'll check it out. On Jan 6, 1:57 pm, John Yerhot

[Rails] Re: Plugin auto_complete

2009-01-06 Thread Sylv Mosfet
Just coming back after holidays... Thanks a lot to Mauricio, Matt and Jakub, but I'm still a newbie on RoR and I prefer not to use Edge Rails yet... As I previously used auto_complete plugin under Windows, I just copied /vendor/plugins/auto_complete directory to its new location under OS X and

[Rails] Change the default folder for image_tag, javascript_include_

2009-01-06 Thread Fernando Perez
Hi, I don't want my default folder to be mysite.com/images/logo.png, but instead mysite.com/common/images/logo.png How can I change that? Same applies to stylesheets and javascripts. Thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You r

[Rails] Re: New cheat sheet: Jump Start Credit Card Processing in Ruby

2009-01-06 Thread John Yerhot
Ok, it says a lot when I find myself chuckling at the sheer cuteness of a technical guide. On Jan 6, 9:46 am, Amy Hoy wrote: > Hey guys... it's me ;) > > I've come out of a long cheat sheet-free period! > > I want to share with you my new, really massive "cheat sheet" on credit > card processing

[Rails] Re: A/B testing & stats plugins?

2009-01-06 Thread s.ross
You might find this of interest: http://adwords.google.com/support/bin/topic.py?topic=10808 On Jan 5, 2009, at 8:36 PM, Robert Matei wrote: > > Is there nothing like this in the Rails world? I've been looking for a > good testing framework for months, not finding anything, so I've just > been

[Rails] Re: Rails Hosting

2009-01-06 Thread Shandy Nantz
I use a small orange and I am very pleased not only with the service but with the price. Also, if you do a search threw the forum here, you should run into several other posts that give lists and other opinions. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~--

[Rails] Re: New cheat sheet: Jump Start Credit Card Processing in Ruby

2009-01-06 Thread John Yerhot
> Ok, it says a lot when I find myself chuckling at the sheer cuteness > of a technical guide. Forgot to mention - Great Job. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to th

[Rails] Re: IntegrationTest doesn't affect model [SOLVED]

2009-01-06 Thread Fritz Anderson
Summary: I was trying to write an IntegrationTest. I did a post_via_redirect that ought to result in a record being deleted from my (fixture-primed) database. The same post worked as expected in the functional test. In the integration test, the record was not deleted. My error: I had been usin

[Rails] Re: Rails Hosting

2009-01-06 Thread John Yerhot
> Ok, I'll check it out.  And I guess the main thing I am looking for is > a sandbox where I can test remote deploys with Cap and Git, setup the > database, basically anything I would do with a "production" level > app. in that case, I'd just get a $20 slice at Slicehost. --~--~-~--~~

[Rails] Re: items.destroy doesn't work

2009-01-06 Thread Harold
How about Item.destroy_all(conditions) Which will call the destroy callback methods (slow if you are destroying many records). If you don't care about callbacks, use delete_all instead. http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M001974 On Jan 6, 3:22 pm, scott wrote: > why do

[Rails] Re: Editing cell_text in calendar helper

2009-01-06 Thread David
This is really random, but I figured out the problem. Rails chokes on double quotes, so you have precede them with a slash: (this code is specific to integrating the DOM popup kit with the calendar helper plugin) cell_text << "Click here for popup" On Jan 5, 2:23 pm, David wrote: > Im wonderin

[Rails] Re: Rails Hosting

2009-01-06 Thread Bobnation
A $20 slice or a cheap VPS from somewhere would do the trick for you ... at least that is what it sounds like. On Jan 6, 3:41 pm, John Yerhot wrote: > > Ok, I'll check it out.  And I guess the main thing I am looking for is > > a sandbox where I can test remote deploys with Cap and Git, setup th

[Rails] Re: RoR, Apache2, fcgid and ubuntu...

2009-01-06 Thread Bobnation
I guess my question would start with this: why are you using fcgi? On Jan 6, 2:57 am, ZebaMomin wrote: > Hi. > I'm trying to deploy my rails application on ubuntu server using apache2 > and fcgid..but have not been successful.. > I am using ruby 1.8.6, rails 2.2.2 and fcgi 0.8.7 gem... > I am ab

[Rails] Re: AR deep clone

2009-01-06 Thread Harold
Ran into this a while back. your_ar_instance.dup will keep the child records as well. On Jan 6, 1:25 pm, Michael Rigart wrote: > Hi all, > > I'm having problems with cloning an ActiveRecord Object. The object > consists of multiple child objects, so when I use the normal clone > method, it only

[Rails] Re: Rails Hosting

2009-01-06 Thread pete
Does a "slice" allow me to have multiple apps running? For example, say I have 2 prototypes, app1 and app2. Can I deploy app1 and app2, and if I have the domain "app1.com" and "app2.com" can I set up the DNS to correctly map to the applications seperately? I'll check out slicehost, but thought

[Rails] Re: Newbie automation testing web services with ruby

2009-01-06 Thread winstan
Hi Fred, Ah my mistake, started new discussion on the wrong window. Thanks for pointing it out to me. Lucas On Jan 6, 9:22 pm, Frederick Cheung wrote: > On 6 Jan 2009, at 05:17, winstan wrote: > > > > > Hi all, > > > First post on this group and I hope you guys are as helpful as the > > other

[Rails] Re: Calling System on winows batch file

2009-01-06 Thread Ryan Mckenzie
I put in the absolute paths and the bat file executes now but the .exe file displays an output in a new Internet Explorer window. I'm not sure if there is a problem within the .exe file with the .default.ard path being absolute. How would I echo the path in the bat file? Sorry I'm not very f

[Rails] Re: Calling System on winows batch file

2009-01-06 Thread Ryan Mckenzie
Ryan Mckenzie wrote: > I put in the absolute paths and the bat file executes now but the .exe > file displays an output in a new Internet Explorer window. > Sorry this blank output is different from the expected outcome... the .exe file produces an output file which is then rendered in the I

[Rails] Re: Empty collection returned for model with has_many relationship

2009-01-06 Thread Mark Reginald James
Frederick Cheung wrote: >> Why does only the first object in the collection >> have a different object_id, and why does this >> difference go away if the empty a.steps is loaded >> before b is added? Is it a proxy thing? >> > Because .first will hit the database and load a fresh copy (if the > c

[Rails] randomly dropping sessions

2009-01-06 Thread Tim
Hey all, Most of our customers get through our shopping cart no problem so orders continue to flow. However we've recently (past 10 days) started receiving reports of people not being able to add items to their cart. This seems to be affecting 2-3% of our customers. Taking a look at the logs I

[Rails] how to monkeypatch Hash's []= method

2009-01-06 Thread Harold
I'm trying to monkeypatch the []= method in the Hash class: Hash.class_eval do def []_with_feature=(a,b) puts 'foo' end alias_method_chain :[]=, :feature end Something is wrong with the syntax, but I can't figure out what. The alias_method_chain method does look for punctuation (= in t

  1   2   >