[Rails] RACK: adding a query parameter before call

2011-04-24 Thread rails.n...@gmail.com
Hey I'm trying to add a query parameter before the call to my rails app ... through Rake Thought itd of been simple, but struggling... Can anyone help? thanks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: RACK: adding a query parameter before call

2011-04-24 Thread rails.n...@gmail.com
Hmmm.. should I focus on adjusting the request or the 'env' variable when I call the app? -- 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

[Rails] Re: Can Redis2Go replace memcahe?

2011-02-21 Thread rails.n...@gmail.com
Does anyone have any experiences in production with Redis being slow for fragment caching? On Feb 21, 12:56 pm, rails.n...@gmail.com rails.n...@gmail.com wrote: According to this, Redis is too slow for caching http://stackoverflow.com/questions/4221735 Can anyone confirm that experience

[Rails] Re: Page Caching extending it?

2011-02-20 Thread rails.n...@gmail.com
Thanks for the replies guys. I think I might be on the right track now The documentation says: Pressing shift-reload in the browser will cue the browser and Varnish to regenerate the page, regardless of the cache state. http://devcenter.heroku.com/articles/http-caching That goes against

[Rails] Re: Can Redis2Go replace memcahe?

2011-02-20 Thread rails.n...@gmail.com
According to this, Redis is too slow for caching http://stackoverflow.com/questions/4221735 Can anyone confirm that experience? -- 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: Page Caching... extending it???

2011-02-18 Thread rails.n...@gmail.com
Not a version manager Its more about selecting content for different circumstances Being able to cache different versions for a page/url and select it in logic contained in a Action Cache wrapper seems the most appropriate I'm just wondering if anyone knows of example of extending Action Cache

[Rails] Re: Page Caching... extending it???

2011-02-18 Thread rails.n...@gmail.com
I guess this could also be done by implementing some sort of Fragment Cache... wrapping a whole page Just not sure where to begin... I don't want to reinvent rails caching... just want to tweak it with a simple conditional + have control on the file cache storage -- You received this message

[Rails] Page Caching... extending it???

2011-02-17 Thread rails.n...@gmail.com
Hey there Is it possible to intercept Action Cache to force it to use a specified filename to save to or to load a specified cached file that is different to the current one expected for the URL? I guess this is some sort of extending of action cache but I cannot find much in google :)

[Rails] Re: Page Caching... extending it???

2011-02-17 Thread rails.n...@gmail.com
Any clues anyone? On Feb 17, 11:57 pm, rails.n...@gmail.com rails.n...@gmail.com wrote: Hey there Is it possible to intercept Action Cache to force it to use a specified filename to save to or to load a specified cached file that is different to the current one expected for the URL? I

[Rails] Re: Page Caching... extending it???

2011-02-17 Thread rails.n...@gmail.com
page, action or fragment caching ? Luke On 2011-02-17, at 1:31 PM, rails.n...@gmail.com wrote: Any clues anyone? On Feb 17, 11:57 pm, rails.n...@gmail.com rails.n...@gmail.com wrote: Hey there Is it possible to intercept Action Cache to force it to use a specified filename

[Rails] Can Redis2Go replace memcahe?

2011-01-06 Thread rails.n...@gmail.com
Hey The price difference for 100mb Redis or Memcache is only $5 I may have it wrong, but thought Redis provides very similar functionality, with extra useful functionality Why or when would someone chose Memcache over Redis? Redis is promoted as a way to store sessions, so I assume it is

[Rails] Bundler behind a proxy

2010-12-20 Thread rails.n...@gmail.com
Can anyone help with this question? https://github.com/wycats/bundler/issues/issue/203/ thanks -- 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-t...@googlegroups.com. To unsubscribe from

[Rails] Re: Implementing the MetaWeblog API

2010-12-11 Thread rails.n...@gmail.com
I'd be interested to know this too Anyone know of a way to implement MetaWeblog into Rails3? -- 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-t...@googlegroups.com. To unsubscribe from this

[Rails] Why don't Helpers auto-refresh in development mode?

2010-11-15 Thread rails.n...@gmail.com
Hey there I find it frustrating that my rails helps do not reload in development mode Any changes I make to a model are immediately reflected, but helper changes require a server restart Does anyone know a work around? cheers -- You received this message because you are subscribed to the

[Rails] Re: Why don't Helpers auto-refresh in development mode?

2010-11-15 Thread rails.n...@gmail.com
If I define helpy in my application_helper.rb file: def helpy return something end ... and then change the return value between page refreshes, it is not updated I just get the original method definition loaded when webrick server started On Nov 15, 11:00 pm, radhames brito

[Rails] Re: Why don't Helpers auto-refresh in development mode?

2010-11-15 Thread rails.n...@gmail.com
Thanks for replying, btw Is there a hack I can do to cause it to reload the definition on every request? -- 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-t...@googlegroups.com. To

[Rails] Re: Why don't Helpers auto-refresh in development mode?

2010-11-15 Thread rails.n...@gmail.com
I just tested this in a new, fresh Rails project and the results are different Changes to a helper are immediately reflected Turns out, Inherited Resources gem effects this behaviour... and locks in your helpers when the server starts -- You received this message because you are subscribed to

[Rails] Re: Why don't Helpers auto-refresh in development mode?

2010-11-15 Thread rails.n...@gmail.com
I have created a ticket for this on the Inherited Resources page http://github.com/josevalim/inherited_resources/issues/issue/95 -- 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] making your own FormBuilder

2010-11-07 Thread rails.n...@gmail.com
Hey all So I can follow this and make my own form helpers by extending FormBuilder ...http://www.sepcot.com/blog/2008/05/Accessible-Field- Errors Also in that tutorial it shows how to redefine field_error_proc My question is . is it possible to define the field_error_proc method JUST for

[Rails] Re: making your own FormBuilder

2010-11-07 Thread rails.n...@gmail.com
I could easily do this: ActionView::Base.field_error_proc = Proc.new { |html_tag, instance| html_tag } But that kills the default functionality for ActionView::Helpers::FormBuilder Struggling to find some logic to test whether the call to field_error_proc is coming from the base

[Rails] Why can I do a case insensitive Validation but not Find?

2010-11-02 Thread rails.n...@gmail.com
Why can I do this validates_uniqueness_of username, :case_sensitive=false but not this User.where Xx, :case_sensitive=false ? -- 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] Shouldn't XXX.all mean no more queries?

2010-08-07 Thread rails.n...@gmail.com
Hey I thought if I did Pages.all in the controller that would load all rows? Since, in my view if I later do Pages.find(1) that causes another query ? I did try doing @pages = Pages.all and then querying @pages.find(1) but no luck any ideas? cheers -- You received this message

[Rails] Re: RC routing error that was not in Beta4

2010-08-02 Thread rails.n...@gmail.com
Is rails talk not the best spot to ask questions these days? -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] RC routing error that was not in Beta4

2010-08-01 Thread rails.n...@gmail.com
In beta4 I could do this: resources :sections do get :new, :on=:member end But not with RC If I change new to be something else, I can do that So it seems that new is now treated like a reserved word of sorts? I really need to share the new method between sections/new and

[Rails] Re: RC routing error that was not in Beta4

2010-08-01 Thread rails.n...@gmail.com
Really hoping this is a bug not a new policy I can see why new might want to be a reserved word in some way But in this case, I really do need rails to map the new path so it allows creating sub member items EG: /section/1/new/ is so much cleaner compared to /section/new/?parent=1 --

[Rails] Re: RC routing error that was not in Beta4

2010-08-01 Thread rails.n...@gmail.com
Is there a way I can lodge a ticket? -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] loading a partial via AJAX

2010-07-26 Thread rails.n...@gmail.com
Hi I accept that partials are not intended to be exposed via a URL However I'd like to load my basic _form.html.erb partial for my model to build basic AJAX form So one way to do this is to put something like this in the controller: def basic_form render :partial=form end .. but..

[Rails] Re: loading a partial via AJAX

2010-07-26 Thread rails.n...@gmail.com
Any ideas folks? On Jul 26, 10:32 pm, rails.n...@gmail.com rails.n...@gmail.com wrote: Hi I accept that partials are not intended to be exposed via a URL However I'd like to load my basic _form.html.erb partial for my model to build basic AJAX form So one way to do this is to put

[Rails] Re: multiple view directories to achieve rails themes

2010-04-24 Thread rails.n...@gmail.com
Maybe I just need to ask it this way: At the end of every action the render function is called automatically with no options (unless the programmer explicitly calls it). Any clues as to how I would override that method to modify the folder path for the view files? Any tips would be heaps

[Rails] multiple view directories to achieve rails themes

2010-04-23 Thread rails.n...@gmail.com
Hi I'd like to have various themes for my site that cannot be achieved by changing the CSS or anything else. So my directory structure might look like this: app \ views - \ users \ blogs - \ THEME2 - \ users \ blogs (where the two users

[Rails] Re: help testing Rails patches / tickets

2010-04-19 Thread rails.n...@gmail.com
Can anyone help me out with some tips? On Apr 18, 1:55 pm, rails.n...@gmail.com rails.n...@gmail.com wrote: I'm new to this and trying to test this patch:https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3645 Steps: git clone git://github.com/rails/rails.git git checkout

[Rails] help testing Rails patches / tickets

2010-04-17 Thread rails.n...@gmail.com
I'm new to this and trying to test this patch: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3645 Steps: git clone git://github.com/rails/rails.git git checkout v3.0.0.beta1 (I assume this is what the patch works on judging by the date?) git am ~/labels-with-blocks.diff

[Rails] Re: files in lib directory not loading

2010-03-25 Thread rails.n...@gmail.com
Does anyone have any clues of suggestions? I'm not even sure how to manually load Rack::Firebugger in app/lib/ rack/firebug_logger.rb But would rather it just automatically loaded -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: files in lib directory not loading

2010-03-24 Thread rails.n...@gmail.com
Is app/lib/rack/firebug_logger.rb simply the wrong direcotry? Or is there something I need to do to make it work? If I put module Rack class FirebugLogger ... end end ... inside my application controller it all works fine -- Rack::FirebugLogger is accessible and works.

[Rails] files in lib directory not loading

2010-03-23 Thread rails.n...@gmail.com
Hi there I'm trying to install this rack application: http://fuelyourcoding.com/set-rails-logging-on-fire/ However, my rails3 setup is not picking up my lib file: app/lib/rack/firebug_logger.rb which contains: module Rack class FirebugLogger ... end end And in my

[Rails] rails3 validator - has no error message?

2010-02-20 Thread rails.n...@gmail.com
Hey So I can create validations like this: validates :title, :presence = true, :uniqueness = true, :length = { :maximum = 100 } BUT I cannot use :message='blah blah' ... ? I am stuck with the default is invalid error message? Does anyone have any insite into this? cheers -- You received

[Rails] Re: rails3 validator - has no error message?

2010-02-20 Thread rails.n...@gmail.com
Maybe I'm meant to wrap the validation in something? On Feb 20, 8:32 pm, rails.n...@gmail.com rails.n...@gmail.com wrote: Hey So I can create validations like this: validates :title, :presence = true, :uniqueness = true, :length = { :maximum = 100 } BUT I cannot use :message='blah blah

[Rails] restful route paths... has something changed?

2010-02-18 Thread rails.n...@gmail.com
So I have this resources :forums do resources :topics end But when I try to do this: %= forum_topics_path(1, 2) % I get: /forums/1/topics.2 Why the dot? Expecting a slash This is rails3.. so maybe I am doing it wrong to what I'm used to cheers for any info! -- You received

[Rails] Re: restful route paths... has something changed?

2010-02-18 Thread rails.n...@gmail.com
Oh just worked it it out Should be using forum_topic_path sorry for the spam -- 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-t...@googlegroups.com. To unsubscribe from this group, send

[Rails] dm-mongo-adapter / rails3

2010-02-01 Thread rails.n...@gmail.com
There seems to be a lot of choices for DB adaptors in the Rails3 world Has anyone tried dm-mongo-adapter? What is the preferred adaptor for Mongo? -- 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] Heroku.... I'm sceptical

2009-11-25 Thread rails.n...@gmail.com
So I've tried to post three times to post to the Heroku Google Group.http://blog.heroku.com/archives/2008/2/11/heroku_mailing_list/ However it is moderated and they FILTER questions!!! My questions were filtered and they weren't even critical, just asking some basics. Sure there has been a

[Rails] Re: Heroku.... I'm sceptical

2009-11-25 Thread rails.n...@gmail.com
About *your* account that *you* pay for. As for proof... well I'm just saying I got my messages filtered out. This group is highly active with relatively low spam, imo. On Nov 26, 2:14 am, Thufir hawat.thu...@gmail.com wrote: Heroku uses a mailing list, which *they* administrate -- privately.

[Rails] Heroku questions!

2009-11-14 Thread rails.n...@gmail.com
Am seriously considering Heroku! On their pricing page it says 4 dynos are equivalent to the compute power of one CPU-core on other systems. I'm just trying to work out why I'd chose a dedicated server. Their cheapest one is 1 compute unit - so does that make it comparable to 4 dynos? Would

[Rails] Re: Google App Engine

2009-10-24 Thread rails.n...@gmail.com
Heroku seems quite expensive... the $50 Crane recommended for small business apps quickly becomes $158 when you follow their recommended number of Dynos. And there is no mention of bandwidth costs. Meanwhile GAE is offering 5million page views free per month.

[Rails] Re: Google App Engine

2009-10-24 Thread rails.n...@gmail.com
With BigTable I think there would be a considerable amount of re- thinking needed to get Rails to use it effectively. From what I've read, Google app engine wont necessarily scale well if you blindly attempt to use it in a similar fashion as relational databases GAE is not a great

[Rails] Google App Engine

2009-10-22 Thread rails.n...@gmail.com
Is anyone doing a project involving GAE? Would love to hear of some existing projects! My understanding is that Rails 3 Datamapper will be a much, much better fit for Datastore? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: Google App Engine

2009-10-22 Thread rails.n...@gmail.com
Thanks Conrad Am very interested in using BigTable, since I think GAE is a platform I'd like to commit to (automatic scaling is a huge plus for me) Just trying to envisage what how a non-relational ActiveRecord will bahave or whether the differences will be transparent.

[Rails] Re: Google App Engine

2009-10-22 Thread rails.n...@gmail.com
On Oct 23, 3:15 pm, Sijo k g rails-mailing-l...@andreas-s.net wrote: http://www.youtube.com/watch?v=pHMpf6hx8Ek Awesome :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Rails 3.o

2009-09-02 Thread rails.n...@gmail.com
So... Beginning Rails 3 is supposedly due Sept 2009 http://www.apress.com/book/view/9781430224334 Rails 3 in Action is due February 2010 (est.) http://www.manning.com/katz/ ... can we assume a beta release of Rails 3 is very close? Would like to invest in Rails 3 :)

[Rails] Template problem

2009-06-20 Thread rails.n...@gmail.com
So this works from the command line: script/plugin install git://github.com/rails/acts_as_tree.git BUT this doesn't work inside a template: plugin acts_as_tree, :git=git://github.com/rails/ acts_as_tree.git, :submodule=true The error I get is: fatal: Not a git repository (or any of the

[Rails] Re: Template problem

2009-06-20 Thread rails.n...@gmail.com
Slightly confused since I've noticed other templates using the same call: http://github.com/jazen/rails-app-template/blob/54fa16b7aca8400863c7b5507ebc687574089b54/template.rb IE: plugin acts_as_tree, :git=git://github.com/rails/ acts_as_tree.git, :submodule=true Frustrating not sure if

[Rails] Engines VS rails3

2009-04-26 Thread rails.n...@gmail.com
So in the recent doubleshot http://afreshcup.com/2009/04/24/double-shot-438/ there is the comment Tips for writing your own Rails engine I’d wait for Rails 3 if I could myself. What is planned for Rails3 that is preferable over Engines? Would not moving to Engines now make it easier to

[Rails] Q: find :include

2009-02-27 Thread rails.n...@gmail.com
So I have class Post ActiveRecord::Base belongs_to :user end @posts = Post.find :all, :include=:user but when I look at my logs I see this: Post Load (2.4ms) SELECT * FROM `posts` User Load (0.2ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) I was expecting one

[Rails] Re: Q: find :include

2009-02-27 Thread rails.n...@gmail.com
what exactly do you want to do??? I just didn't want to make a new query everytime i accessed a user of a post However, Fred is right http://www.akitaonrails.com/2008/5/26/rolling-with-rails-2-1-the-first-full-tutorial-part-2 So 2 queries is ok! :) thanks guys

[Rails] Q: find_by_x_id and named scopes

2009-02-22 Thread rails.n...@gmail.com
Hi I have a model Topic that has many Posts, and I'm trying to use a named scope on my find I can do something like this: @posts = @topic.posts.named_scope_func But I cannot do this: @posts = Post.find_by_topic_id(1).named_scope_func The reason is that the posts and find_by_topic_id seem to

[Rails] Re: working with Blocks

2009-02-16 Thread rails.n...@gmail.com
I should mention that I am making these functions myself... to use in a view Is there something I need to do to get the function working as a model method in a do block? On Feb 16, 4:48 pm, rails.n...@gmail.com rails.n...@gmail.com wrote: hey I am able to do:      block_func(x, y) do

[Rails] working with Blocks

2009-02-15 Thread rails.n...@gmail.com
hey I am able to do: block_func(x, y) do end But if I try to do this: form.block_func(x, y) do end I get an error like this: syntax error, unexpected ')' @output_buffer.concat ; @output_buffer.concat (( form.block_func(x, y) do