On Wed, Jun 23, 2010 at 8:50 AM, Abder-rahman Ali li...@ruby-forum.com wrote:
16: %= f.date_select(:start_year=1950, :end_year=2010) :dob %
you'll need the object and method,
http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M002264
kind regards -botp
--
You received
On Tue, Sep 7, 2010 at 3:59 AM, z s...@codez.ch wrote:
http://github.com/codez/render_inheritable.
cool, Pascal.
will try this some time..
thanks and best regards -botp
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post
# but hello method does not work yet since we've not defined it yet on
person class
# j.hello 1 = will err here
# now we modify person
class Person
include MethodMaker
end
# the new methods now work
j.hello 1
j.bye 1
best regards
-botp
--
You received this message because you are subscribed
].each do |item|
b[item[cat]] item
end
best regards -botp
--
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 group, send email to
rubyonrails
update though, and the err message is
not so clear either =)
thanks for rails updates and best regards -botp
--
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
On Sun, Feb 27, 2011 at 10:51 AM, botp botp...@gmail.com wrote:
file 'lib' not found
hm, possibly ri/rdoc-related since i get no err if i do
$ sudo gem install rails --no-ri --no-rdoc
thanks -botp
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails
2011/10/26 Frédéric Champreux li...@ruby-forum.com:
no such file to load -- pg
gem install pg
--
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
be
careful. ie an obj marshaled dump in v1 may not be properly marshaled
load in v2...
/speculation
kind regards -botp
--
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
On Fri, May 18, 2012 at 4:16 AM, Colin Law clan...@googlemail.com wrote:
http://rubytalktips.com
The link is not working for me
the name is resolving somewhere :)
try
http://50.62.128.115:3000/pages/about
--
You received this message because you are subscribed to the Google Groups Ruby
},
{:cod = 0006, :name = name6, :val = 110},
{:cod = 0006, :name = name6, :val = 10},
]
What I would like to learn how to do is how to remove a record if it is
duplicate end sum values :val.
try
list.uniq
kind regards -botp
--
You received this message because you are subscribed to the Google
On Fri, Aug 3, 2012 at 7:33 PM, Esmerino Jr jose.esmer...@gmail.com wrote:
Thanks for replay, but this solution only remove the duplication of values
and sum of values duplication?
pls show what output you really want.
--
You received this message because you are subscribed to the Google
] if session[k].present?
Sorry -- really not sure what's supposed to be happening here --
you're assigning to a string literal?
--
apparently, he meant...
instance_variable_set(@#{k.to_s}, session[k]) if session[k].present?
kind regards -botp
--
You received this message because you
interprets javascript built
in. So how does this fit in to everything? Is my premise incorrect?
you are correct.
kind regards -botp
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from
knows which is the best way to migrate sqlite to postgresql? Thanks
look for the taps gem
best regards -botp
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email
On Wed, Jun 5, 2013 at 7:16 AM, Alphonse 23 li...@ruby-forum.com wrote:
Still, I don't know how to get Rails 4 to recognize Ruby 2
1 check if you have .ruby-version file
2 check the contents of your Gemfile for references to ruby 1.8 or Force
it to use ruby 2.0
3 rm Gemfile.lock and
On Thu, Nov 20, 2014 at 6:40 AM, tom tomabr
-- why are my event date attributes nil/blank?
i dont see from_date.
from_date(1i) not same as from_date
kind regards -botp
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe
Instruction: redirect_to root_url
Error message: wrong number of arguments (2 for 1)
probly the redirect_to is not clean. check its code. (compare w the
newly installed railstutorial)
usually when you upgrade rails/ruby to maj ver, youd also want to
upgrade the gems...
kind regards --botp
--
You
it cannot load the file since it's probably not there. it's looking
for sqlite3...
you need to install sqlite3
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email
to edit the letters and i can visibly see if they align or go out of
bounds/edges.
there are vector-based-like version of this; see figlet and artii gems eg.
kind regards --botp
On Fri, May 8, 2015 at 8:29 AM, Miles Morales nncy.vall...@gmail.com
wrote:
https://lh3.googleusercontent.com/-m_DS
'q'
puts 'bye bye'
when ''
puts 'No letter was typed!'
else
puts This letter is not part of hiragana alphabet!
end
you may replace the above case statement w
vowel = vowels[key] || this letter is not part of hiragana alphabet\n
print vowel
kind regards --botp
--
You
task that start rails w the
default options i want
kind regards
--botp
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr
.
hope that helps.
kind regards --botp
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group
rget_area_coordinate)
just return true here.
i would suggest separating the conversion from the validation.
kind regards,
--botp
> return true
> end
>
> end
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" grou
guides.rubyonrails.org/active_record_postgresql.html
so to dump schema, try
config.active_record.schema_format = :sql#instead of :ruby default
kind regards
--botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this grou
On Wed, Oct 14, 2015 at 4:30 AM, David McDonald <daveo...@gmail.com> wrote:
> Scenario 1:
> Scenario 2:
> Thoughts?
Scenario 3: create a another database. dump the invalids there.
kind regards --botp
--
You received this message because you are subscribed to the Google Groups
On Mon, Oct 19, 2015 at 11:04 PM, Frederick Cheung
> FYI, plugins were removed in rails 4.0
just to be clear. only the vendor/plugins directory was remove.
rails 4+ now recommends the gemified plugin
kind regards
--botp
--
You received this message because you are subscribed to the Goo
you think it's easy, then
justify, demonstrate it to the group.
kind regards
--botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails
On Thu, May 5, 2016 at 11:25 PM, Avery Wilkening <li...@ruby-forum.com> wrote:
> Where can I find documentation on this?
there are lots, try this eg
https://robots.thoughtbot.com/how-rails-works-type-casting
just remember, this is ruby, and "foo=" can be a method call.
t; redirect_to request.referrer
> end
>
params[:file_name], from_path, and to_path all point to the same
object. to verify, check their #object_id.
so if you modify to_path, you also modify the other two. try #dup to
copy an object.
kind regards
--botp
--
You received this message
he rails way is to do a revert, since you should have already
created a migration for it in the first place.
kind regards
--botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails
ailsadmin,
activeadmin, administrate, etc), and get ideas how they do it.
best regards
--botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyon
see config.assets.prefix
On Tue, Oct 24, 2017 at 11:01 PM, Takuya Kusumoto wrote:
> I guess asset compile is failing with relative_url_root...
> Any bugs reported?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To
t; What you people think about it?
>
>
you're looking at the edge guides; for 5.2 look here
http://guides.rubyonrails.org/active_storage_overview.html#transforming-images
.
many thanks,
--botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails
documented
> feature.)
>
>
(from ruby core)
=== Implementation from Array
ary << obj-> ary
Append---Pushes t
On Fri, Apr 27, 2018 at 12:12 AM, Abdel Latif <mlotfi2...@gmail.com> wrote:
> But this part .flat_map{|x| x.sort_by {|x|x[/d+/]}.reverse}
>
>
two things look suspicious:
1) /d+/
2) reverse
have you tried randomly rearranging your arrays first?
m
any thanks,
--botp
-
fferent/separate)
domain
2 on the mta: make sure virtual domains contain those 3 domains
best regards
--botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, sen
t; help?
>
>
belongs_to (and other assocns) has options for class name and foreign
key. see ri or doc.
otoh, i wonder if it would have been easier to create just another Worker
resource (and probly delete Person); but ymmv prolly.
best regards --botp
--
You received this message because y
ot;
=> "+2124914028 06/09/2017 12:21:56 Are we meeting up for breakfast today?
1"
> phone,date,time,remaining=s.split(/\s/,4)
=> ["+2124914028", "06/09/2017", "12:21:56", "Are we meeting up for
breakfast today? 1"]
the remaining part is similar.
redundant
--
many thanks and many regards,
--botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@googlegroups.c
Thanks
>
>
imho, the origl repo should be emptied and, if the link/repo should stay
for whatever reason, should provide a redirect instead.
--
many thanks and many regards,
--botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk&q
others in there.
--
many thanks and many regards,
--botp
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@googlegr
On 7/2/19, Janko Marohnić wrote:
>
> 10.times do
> threads << Thread.new do
> ActiveRecord::Base.connection.execute "SELECT 1"
try also remove_connection
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this
42 matches
Mail list logo