As a side note, I realize that you wouldn't be instantiating an
ActiveRecord::Relation object in a view, but I used that as an example of
how you can defer loading almost anything until there is a cache miss.
On Friday, September 7, 2012 10:25:30 PM UTC-7, bricker wrote:
This was sparked by
As a side note, I realize that you wouldn't be instantiating an
ActiveRecord::Relation object in a view, but I used that as an example of
how you can defer loading almost anything until there is a cache miss.
--
You received this message because you are subscribed to the Google Groups Ruby
on
use def change
forget up and down def
cheers
Fahim Babar Patel
On Sat, Sep 8, 2012 at 9:55 AM, Javier Quarite jquari...@gmail.com wrote:
Rails is smart enough to determine if you want to create or drop a table
if you have done the migration with change
def change
#code here
end
it only
I am with you also, thank you!
On Tuesday, September 4, 2012 4:33:12 AM UTC+3, Tima wrote:
Hi everyone! I'm a newbie engineer.
I started rails programming, but I'm learning alone and can't understand
other rails cord so much.
So I wanna have friend with other newbie rails engineers and
On Saturday, September 8, 2012 6:25:30 AM UTC+1, bricker wrote:
[snip]
Line 1 will perform a database query no matter what, on every page load.
It also requires several hits to the cache database to check for every
blog's `cache_key`.
If any post in a blog is updated, that block will be
On Friday, September 7, 2012 9:05:28 AM UTC+1, Ruby-Forum.com User wrote:
Hi,
in development mode you can turn auto_explain_threshold_in_seconds on
and see when a query is slow in the command prompt. Is there a gem that
can send me slow queries and slow loading pages in production mode?
Rails 3.1.3
I have a general question about Ajax update.
Say, I have an array of javascript objects like,
arryObj = [Object1, Object2, Object3...]
Each object has fields like
Object.date = ...
Object.text = ...
Surely, a Rails model has the same fields.
Is there anyway to update the entire
thanks for reply
On Sat, Sep 8, 2012 at 9:55 AM, Javier Quarite jquari...@gmail.com wrote:
Rails is smart enough to determine if you want to create or drop a table
if you have done the migration with change
def change
#code here
end
it only depends on how you write the commands
if you
Hi! Viorel!
Could you join us? If you could, plz send a e-mail to railsg...@gmail.com !
:)
2012年9月8日土曜日 16時34分32秒 UTC+9 Viorel:
I am with you also, thank you!
On Tuesday, September 4, 2012 4:33:12 AM UTC+3, Tima wrote:
Hi everyone! I'm a newbie engineer.
I started rails programming, but
Ashokkumar
I send you an e-mail through this group address, plz reply! :)
Bruce
I also wanna learn RoR. Could you help us with solving this newbie
challenge?
If you don't mind, plz send an e-mail to railsg...@gmail.com !:)
2012年9月4日火曜日 10時33分12秒 UTC+9 Tima:
Hi everyone! I'm a newbie
On 6 September 2012 15:25, roelof rwob...@hotmail.com wrote:
Op donderdag 6 september 2012 15:57:09 UTC+2 schreef Hassan Schroeder het
volgende:
On Thu, Sep 6, 2012 at 6:48 AM, roelof rwo...@hotmail.com wrote:
But how can I then make the place. Must I use a x and y or can I use
words
On 6 September 2012 20:21, Nick Snels li...@ruby-forum.com wrote:
I have a live production site (production mode) running alongside a test
site running in development mode. They both run on the same machine,
using Rails 3.2.8. If I request a page on the production site, it takes
approximately
On 7 September 2012 12:20, Matt Jones al2o...@gmail.com wrote:
On Friday, 7 September 2012 02:25:32 UTC-4, Ruby-Forum.com User wrote:
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
rake aborted!
no such file
In the example below, what is the dash doing between the class
attribute and array:
(field_helpers -
[:label, :check_box, :radio_button, :fields_for, :hidden_field,
:file_field]).each
do |selector|
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
In ruby a minus on an array removes elements. So its removing elements
from the array.
On Sep 8, 2012 1:42 PM, John Merlino stoici...@aol.com wrote:
In the example below, what is the dash doing between the class
attribute and array:
(field_helpers -
[:label, :check_box, :radio_button,
2012/9/8 John Merlino stoici...@aol.com
In the example below, what is the dash doing between the class
attribute and array:
(field_helpers -
[:label, :check_box, :radio_button, :fields_for, :hidden_field,
:file_field]).each
do |selector|
Look at
Yeah so I would like to see the returned array of instance methods of
field_helpers of FormBuilder. I try to return it in console:
1.9.3p0 :016 FormBuilder.field_helpers
NoMethodError: undefined method `field_helpers' for FormBuilder:Class
Why is it saying undefined method field_helpers when
On 7 September 2012 22:08, ACK aniketkadam1...@gmail.com wrote:
hi i m new to rails i need to know the = which is the best way to create
Database table in Rails?
1) rails generate model User name:string email:string
this will create a migration file with something like this
class
Can anyone point me in the direction of what is the best way to
implement client side validations in rails? It seems like it is/used to
be client_side_validations, but I can't get it to work with formtastic
or simple_form. Is there a gem out there that will do client side form
validations out of
Without going to detail, I'll just show important code:
text field is passed the name of object, could be a symbol (:user) or
string (user[]). method is datbase attribute or virtual attribute.
the options hash, among other things, includes the object if persisted
(e.g. @user).
def
20 matches
Mail list logo