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
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
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
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
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
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
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
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 :)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--
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
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..
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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.
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
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.
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
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
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.
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
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 :)
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
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
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
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
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
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
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
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
57 matches
Mail list logo