Hello all.
In this example, as i understand that *included* block is running when
Exclaimable module is included in Person and *after* a Person class methods
are 'initialized'
> require 'active_support/concern'
>
> module Exclaimable
> extend ActiveSupport::Concern
> included do
>
How to make infinity loop in background?
In my application.html.erb i want to make this endless:(get_dialogs and the
subscribe_to)
> <% user.get_dialogs do |dialog| %>
> <%= subscribe_to "/dialogs/#{dialog[:id]}" %>
> <% end %>
Of`course, on client side i am using setInterval , but on server
yes, it is string. I find decision , i am using date without zero's like
this:
User.where(bdate: "1945-5-9")
вторник, 19 ноября 2013 г., 19:09:01 UTC+4 пользователь Colin Law написал:
>
> On 19 November 2013 14:07, rusik > wrote:
> > Hi all, i have User mod
Hi all, i have User model with bdate: string
Try :
> User.find(2).bdate
> => Wed, 09 May 1945
> User.find(2).bdate.to_s
> => "1945-05-09"
But if i run:
> User.where(bdate: "1945-05-09")
> => []
Why???
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rail
4 matches
Mail list logo