[Rails] Re: seeking guidance: writing effective tests for externally sourced data

2011-01-29 Thread Fearless Fool
A minor correction: Fearless Fool wrote in post #978457: > Marnen Laibow-Koser wrote in post #978394: >> The external site isn't already setting its HTTP caching headers >> properly for this? > > That's a good suggestion, and I'll certainly look into heeding the HTTP > expiration time stamps... I

[Rails] Re: seeking guidance: writing effective tests for externally sourced data

2011-01-29 Thread Fearless Fool
Marnen Laibow-Koser wrote in post #978394: >> - any XML data I fetch from the external site is cached > The external site isn't already setting its HTTP caching headers > properly for this? That's a good suggestion, and I'll certainly look into heeding the HTTP expiration time stamps. In my case,

[Rails] Re: Having trouble with Devise /OmniAuth

2011-01-29 Thread Alpha Blue
With something as important as authentication, I just don't see the need to use devise. I prefer writing my own authentication solution. I've used devise and it's very detailed. But, like many authentication solutions out there, it never covers everything I need. My suggestion to you is to c

[Rails] Re: beginner question: database relationships

2011-01-29 Thread Alpha Blue
Alexander Farley wrote in post #978434: > So, here's my goal: I want an "intuitive" flow of "create user"->"create > user's topics" -> "add blacklist for topic". Right now, my "edit user" > view doesn't allow adding topics (topics must be added manually, with a > known user_id). So, you want to cr

[Rails] Re: Update div with Prototype

2011-01-29 Thread Ace S.
Alberto B. wrote in post #965480: > I want to update the div (datos), the title works well. > I don't know why the option "remote => true" does not works. > > A greeting. > Thanks. Look here: http://www.ruby-forum.com/topic/211467 Cheers ace -- Posted via http://www.ruby-forum.com/. -- You re

[Rails] Access parent object instance variable

2011-01-29 Thread Ellicks M.
Hi there, I have a class which looks like this: class EventRoster{ @events = [] @event_occurrences = [] } @events is an array of Event which contains various information about a financial event on a calendar (title, amount, date etc). This 'event' may repeat (weekly for example) but I don't

[Rails] beginner question: database relationships

2011-01-29 Thread Alexander Farley
Hi, I'm new to db/web stuff so I have some basic questions. Basic question: I don't know what to add to my existing scaffolding-generated CRUD. This project requires "Users" who own many unique "Topics". Each "Topic" will contain a "Blacklist" textfile, several "Rawtext" textfiles and several "Web

[Rails] Re: newbie: defined?(Rails)

2011-01-29 Thread Frederick Cheung
On Jan 29, 6:06 pm, tom wrote: > ok, that makes sense. but where is that variable being 'declared' and or > set? Somewhere early in the Rails initialization process (There's probably a module called Rails - as soon as the file containing it is loaded it will spring into existence) Fred > tia >

Re: [Rails] Re: newbie: defined?(Rails)

2011-01-29 Thread tom
ok, that makes sense. but where is that variable being 'declared' and or set? tia On Sat, Jan 29, 2011 at 12:10 PM, Frederick Cheung < frederick.che...@gmail.com> wrote: > > > On Jan 29, 3:47 pm, tom wrote: > > hi, > > > > i see the line > > > > if defined?(Rails) > > > > more and more in gems

Re: [Rails] Re: Re: Re: Re: Re: Re: Netbeans dumps Rails

2011-01-29 Thread serialhex
> On the subject of standalone GUI tools, I think both Tower > (http://www.git-tower.com/ > ) and Gitti (http://www.gittiapp.com/) beat GitX hands down. just went to check these out... only to be sorely dissapointed that they are both mac-only :( anything comparable for linux or windoze? *random

[Rails] Re: newbie: defined?(Rails)

2011-01-29 Thread Frederick Cheung
On Jan 29, 3:47 pm, tom wrote: > hi, > > i see the line > > if defined?(Rails) > > more and more in gems and other require statements. right now im > looking at a gem and the line > if defined?(Rails) > > is being called prior the first constructor of a class. this seems to > be kinda related to

Re: [Rails] Re: Re: Re: Re: Re: Re: Netbeans dumps Rails

2011-01-29 Thread Peter De Berdt
On 29 Jan 2011, at 17:52, Marnen Laibow-Koser wrote: GitX is a supplement to command-line Git, not a replacement for it. IMHO Git absolutely needs both a GUI tool and a command line. There is no good way to visualize complex branching structures without a GUI, and no good way to perform

[Rails] Re: Hivelogic Install Instructions for OS X

2011-01-29 Thread CN
Thank you very much!! This was perfect and easy. John Tsombakos writes: > > Or go into TextMate's Help menu and choose Terminal Usage and click > the Create Link button. > > jt > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. T

[Rails] Re: Re: Re: Re: Re: Re: Netbeans dumps Rails

2011-01-29 Thread Marnen Laibow-Koser
Peter De Berdt wrote in post #978401: > On 29 Jan 2011, at 15:59, Marnen Laibow-Koser wrote: > >> comparable exists for Mercurial. > On the subject of standalone GUI tools, I think both Tower > (http://www.git-tower.com/ > ) and Gitti (http://www.gittiapp.com/) beat GitX hands down. I didn't know

Re: [Rails] Re: Re: Re: Re: Re: Netbeans dumps Rails

2011-01-29 Thread Peter De Berdt
On 29 Jan 2011, at 15:59, Marnen Laibow-Koser wrote: Whereas I think that the Mercurial plugin *is* fantastic enough to saddle myself with the rest of it... personal preference again! Or the fact that Mercurial is harder to use than Git and needs one more crutch. :) Seriously, I wonder if

Re: [Rails] Re: Re: Re: Re: Re: Netbeans dumps Rails

2011-01-29 Thread Michael Pavling
On 29 January 2011 14:59, Marnen Laibow-Koser wrote: > I do understand the difference.  I also understand that people think > they want things that, when questioned, they cannot explain why they > want nor provide any justification for.  That's the same as saying "I > want a pony": sure, you may w

[Rails] Re: Having trouble with Devise /OmniAuth

2011-01-29 Thread Markus Svensson
Hi My guess is that you need to add your new columns (name, avatar_url) to your attr_accessible. /Markus -- 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 rub

[Rails] Re: seeking guidance: writing effective tests for externally sourced data

2011-01-29 Thread Marnen Laibow-Koser
Fearless Fool wrote in post #978383: > So first, thanks in no small part to Marnen's rants, I've become a > complete RSpec / FactoryGirl / TDD convert. Hey, autotest coupled with > Growl is the bee knees! And I've even started pushing builds out to > Heroku to keep me honest. > > Now I feel uneas

[Rails] acts_as_versioned + optimistic locking

2011-01-29 Thread Ben Perry
Is it possible to use this plugin with version and lock_version columns? >From my experimentation I can't get it to work the way I'd hoped. I have the following User model. class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string

[Rails] newbie: defined?(Rails)

2011-01-29 Thread tom
hi, i see the line if defined?(Rails) more and more in gems and other require statements. right now im looking at a gem and the line if defined?(Rails) is being called prior the first constructor of a class. this seems to be kinda related to autoload rails things, but im not sure. what is it? i

[Rails] seeking guidance: writing effective tests for externally sourced data

2011-01-29 Thread Fearless Fool
So first, thanks in no small part to Marnen's rants, I've become a complete RSpec / FactoryGirl / TDD convert. Hey, autotest coupled with Growl is the bee knees! And I've even started pushing builds out to Heroku to keep me honest. Now I feel uneasy when I've written a piece of code that isn't c

[Rails] Re: Re: One to many ralationships

2011-01-29 Thread Marnen Laibow-Koser
Robert Walker wrote in post #978350: > Robert Walker wrote in post #978348: >> Here's one way that could be accomplished: >> >> The jobs table >> ++++-+ >> | id | creator_id | checker_id | ... | >> | 1 | 3 | 7 | ... | >> | 2 | 1 | 4

[Rails] Re: Re: Re: Re: Re: Netbeans dumps Rails

2011-01-29 Thread Marnen Laibow-Koser
Michael Pavling wrote in post #978365: > On 28 January 2011 15:14, Marnen Laibow-Koser > wrote: If you were my client, and you responded "because I want it" when I asked why a feature was of value to you, you wouldn't get the feature. >>> >>> Now *that's* customer service! :-) (but poor

[Rails] Re: Net::HTTP URI.parse

2011-01-29 Thread Sasi
ya ur right ,... nw it worked.. thanks for ur quick reply :) On Jan 8, 1:57 pm, Frederick Cheung wrote: > On Jan 8, 7:31 am, Sasi wrote: > > > Actually this works fine wth http protocol, > > > My site is hosted in https protocol, can https protocol can be used in > > the below format. if i try t

[Rails] Re: RMagick Installation error

2011-01-29 Thread Sasi
Thanks Shyam.. It worked nw... On Jan 18, 3:15 pm, shyam wrote: > Hi > Try this > > yum install ImageMagick-devel > gem install rmagick > > Thanks and regards, > Shyam Mohan > Ruby on rails developer > Mobile : +91-86884-68400 > Web :  shyam.heroku.com > > > > On Tue, Jan 18, 2011 at 3:32 PM, Sas

[Rails] Error In Installating Ruby Enterprise Edition in RHEL5.4.

2011-01-29 Thread Sasi
Im trying to install ruby from ruby enterprise edition of (ruby- enterprise-1.8.7-2010.02) package. when i tried to install in rhel 5.4 machine which is of 64 bit im getting errors as make: *** [libtcmalloc_minimal_la-tcmalloc.lo] Error 1 .. Anybody has faced same problem while installing ruby.. :(

Re: [Rails] Re: Re: Re: Re: Netbeans dumps Rails

2011-01-29 Thread Michael Pavling
On 28 January 2011 15:14, Marnen Laibow-Koser wrote: >>> If you were my client, and you responded "because I want it" when I >>> asked why a feature was of value to you, you wouldn't get the feature. >> >> Now *that's* customer service! :-)  (but poor economics [1]) > > It's excellent customer ser

[Rails] Re: Starting Mongrel failes on Mac OS 10.6

2011-01-29 Thread Andrew Hodgkinson
Morten Lindow writes: > I am having the same problem on on Ubuntu. Did you find a solution? I had the same issue recently and all Google turned up were numerous different web sites mirroring this same thread. Thus, for the sake of archives, here's what fixed it for me, even if it might be too la

[Rails] Re: production and development - differing behaviour

2011-01-29 Thread bingo bob
Is this to do with the T and Z delimiters not being recognised by mysql? -- 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. T

[Rails] Re: js insert this.value into id

2011-01-29 Thread Frederick Cheung
On Jan 29, 3:14 am, Me wrote: > Is there a way to to put the id from the select into the id of the url > instead of the :with param? > Instead of using remote_function, write your own js function (in application.js). Then change the onchange to myfunction(this.value), or attach an event handler

[Rails] Re: Rails dbconsole not working

2011-01-29 Thread Frederick Cheung
> > > > Luke > > Sorry for just getting back, super busy. :) > > So i created a new project and still Im running into the same issue. > > This is in my echo $PATH: > /Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/musdev/.rvm/ge > ms/ruby-1.9.2-p136/bin:/Users/musdev/.rvm/gems/ruby-

[Rails] Re: production and development - differing behaviour

2011-01-29 Thread Frederick Cheung
On Jan 29, 7:08 am, bingo bob wrote: > Logging now on in production for a while. so that helps. > > '2011-01-28 13:58:38' AND updated_at <= '2011-01-28 13:58:38' AND deal = > true) ORDER BY updated_at DESC, updated_at ASC LIMIT 20 > > But then I change the time to 11am "1100" it does this! >

[Rails] Re: Re: One to many ralationships

2011-01-29 Thread Robert Walker
Robert Walker wrote in post #978348: > Here's one way that could be accomplished: > > The jobs table > ++++-+ > | id | creator_id | checker_id | ... | > | 1 | 3 | 7 | ... | > | 2 | 1 | 4 | ... | > ++++

[Rails] Re: Help with looping through groups of radio buttons

2011-01-29 Thread Chris Sass
The formtastic gem might be able to help you. https://github.com/justinfrench/formtastic It makes writing forms a lot easier and has helpers for writing groups of buttons and stuff. Here's an example from the readme on github... f.input :authors, :as => :check_boxes, :collection => User.find(:al

[Rails] Re: Re: One to many ralationships

2011-01-29 Thread Robert Walker
Conrad Taylor wrote in post #978329: > Hi, in tour relationship below, you simply need has_one or belongs_to > but not both. It really depends where you would like the foreign key. I think you may have misread the original question. The OP seems to be asking how to relate one job to two differen

[Rails] need help on rails route

2011-01-29 Thread nicolas
Hi Everyone I have a site that it is up and running. Now i need to include the Blog feeds to that site. So i Install Word Press on my [rails_root]/ public. When i try to access the blog through my site it gives the route error (No route matches "/blog/" with {:method=>:get}) Any idea??? - nicol

[Rails] Re: production and development - differing behaviour

2011-01-29 Thread bingo bob
Or to put it another way, what's the best/correct way to specify DATETIMEs in a URL. -- 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@google

[Rails] Re: how to write some search functionality in ror

2011-01-29 Thread venkata reddy
users table is having many petient records.. On Jan 29, 8:17 am, Me wrote: > User.find(:column, ) Is a user a patient or have many patients? -- 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