> When filling an id column like that you should probably be passing an
> id rather than a Provider object (although :provider =>
> Provider.find_by_name(...) should be ok).
> Sounds like you should break this down into smaller steps so that you
> see where it is going wrong (eg so that you can che
using lambda ?
it came from an earlier solution
Actually I need to fill the column "provider_id" in the table "rates"
with the associated key-id from the table "provider"!
When I do something like:
Rate.find_or_create_by_name(
:provider_id => Pr
nd
But the association-key (provider_id) in the table "rates" won't be
writen to the database! I also tried accessing directly provider_id
:provider_id => lambda
{ Provider.find_by_name(row['Provider_Name']) },
but didn't succeed. Any help is appreciated.
Thanks,
Harm
That _is_ clever!
I still believe Rails is in error here. The docs indeed do suggest
that the stuff is anchored. Clearly it's not. I'll consider making a
ticket.
Thanks for the input guys!
On Sep 23, 10:30 pm, Marnen Laibow-Koser wrote:
> Matt Jones wrote:
> > The regexp you've specified here
does not.
I believed this to be correct but it's not. Including anchors ('\A'
'$' etc) is not allowed. How else can I fix this?
Harm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Rub
Hi,
When I use the 'action cache' feature in Rails (2.3.2) the result is
stored in Memcached. I can't seem to figure out how the key looks
like.
I want to know this as I want to remove specific pieces of the cache
after a new deploy.
Thanks in advance.
--~--~-~--~~~-
instance of Array on which the 'some_method'
is not defined. How can I solve this?
With kind regards,
Harm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To p
None, the request doesn't even register.
On May 11, 9:30 pm, Shandy Nantz
wrote:
> Is there any errors being thrown in your log?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
' returns false even when I see the request going
thru https. But this might be unrelated.
It IS possible to POST to https from a http connection right?
Any help would be greatly appreciated.
Harm
--~--~-~--~~~---~--~~
You received this message because you are
Thank you Dmitry.
I'll ponder a bit on your remark, my initial gut feeling is that I do
want a singleton resource as I never want to expose more than 1 user.
Ever. Which is restful. But I'll think about it.
On Apr 21, 4:45 pm, Dmitry Sokurenko
wrote:
> Just make users a collection (map.resources
Ow I did misspelled it. I didn't do so in my code.
On Apr 21, 4:10 pm, Marnen Laibow-Koser wrote:
> Harm wrote:
> > That was my initial hunch as well. And it is an AR object.
>
> > I believe that the fact that the user is a singleton resource matters.
> > E
. But it is vert strange Rails doesn't
pick this up automatically. Then again maybe I'm defining the resource
wrong.
On Apr 21, 10:50 am, Frederick Cheung
wrote:
> On 20 Apr 2009, at 20:11, harm wrote:
>
>
>
>
>
> > I have a simple User form with a simple Usercont
I used Spawn (http://blog.sidu.in/2008/06/spawn-reliable-background-
processing.html) _really_ easy to setup. Don't expect any great
control though.
On Apr 20, 9:13 pm, David Knorr wrote:
> On 20 Apr., 19:02, Ajaya Agrawalla
> wrote:
>
> > We would like to queue our emails and send them outside
ield becomes so b0rked?
Running Rails 2.3.2
Harm
--~--~-~--~~~---~--~~
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
Did you require 'net/https'? It seems that that lib is just not loaded/
present.
On Mar 17, 1:05 pm, Arun Kumar
wrote:
> Hi,
> Is there any way to extract the html code of a https:// website in
> hpricot. When i use hpricot to access a https:// website i receive the
> following error.
>
> /usr/l
My initial hunch was correct, thank you Conrad for you pointy question
on which plugin might be the culprit. The plugin 'smurf' inserted some
evil map.connects. Totally fixed it now!
On Mar 17, 10:18 am, Harm wrote:
> I did. :S
> Even GET requests go wrong. In the routes.rb:
&
opics"}
This is very strange.
On Mar 17, 10:07 am, Conrad Taylor wrote:
> On Tue, Mar 17, 2009 at 2:04 AM, Harm wrote:
>
> > I don't think the problem is in the plugins. The only one involved in
> > routing is the new_relic plugin and removing that one is not helpin
in a new
project.
- My routes.rb file is being read properly.
- 'rake routes' returns the usual set of routes.
- Running the server with webrick iso mongrel does not help.
Any other hints?
Harm
On Mar 17, 9:46 am, Conrad Taylor wrote:
> On Tue, Mar 17, 2009 at 1:27 AM, harm wro
ntication
smurf
acts_as_tree
attachment_fu
hoptoad_notifier
newrelic_rpm
role_requirement
Any help would be great.
Harm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this
Hi all,
For a Ruby on Rails project we are currently looking for a freelance Ruby on
Rails developer.
We are looking for a developer who can work on-site in our office (Eindhoven
area, Netherlands).
If you are interested, please give us a call or sent an email to:
Harm de Laat
Kabisa ICT
+31 6
Spawn is dead easy (http://rubyforge.org/projects/spawn/). I used it
to great effect for sending emails while making the user think they
where all already sent. The others Frederick suggested work but are
more trouble than starling/workling.
Harm
On Feb 23, 12:14 pm, Frederick Cheung
wrote
21 matches
Mail list logo