Re: [Rails] Re: Re: Re: Why am I onlu limited by the years from 2005-2015?

2010-06-22 Thread botp
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

Re: [Rails] [ANN] dry_crud 1.0.0

2010-09-06 Thread botp
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

Re: [Rails] meta-programming 101

2010-10-09 Thread botp
# 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

Re: [Rails] Re: An hash of arrays, how to use?

2011-02-11 Thread botp
].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

[Rails] Re: [ANN] Rails 3.0.5 has been released!

2011-02-26 Thread botp
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

[Rails] Re: [ANN] Rails 3.0.5 has been released!

2011-02-26 Thread botp
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

Re: [Rails] Help wanted: pg vs. postgres-pr gems

2011-10-26 Thread botp
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

Re: [Rails] class Date needs to have method `_load' in Rails 3.1.3 and Ruby 1.9.3-p0

2011-12-02 Thread botp
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

Re: [Rails] [ANN] RubyTalkTips 0.0.5 released

2012-05-17 Thread botp
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

Re: [Rails] Remove a record if it is duplicate end sum values

2012-08-03 Thread botp
}, {: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

Re: [Rails] Remove a record if it is duplicate end sum values

2012-08-03 Thread botp
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

Re: [Rails] Simple refactor?

2013-02-17 Thread botp
] 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

Re: [Rails] What is Javascript-Runtime for?

2013-04-06 Thread botp
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

Re: [Rails] Migration from SQLite to PostgreSQL

2013-04-30 Thread botp
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

Re: [Rails] Re: Ruby 2.0 is running, but Rails 4 doesn't see it.

2013-06-04 Thread botp
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

Re: [Rails] date_select - params ok but nil

2014-11-19 Thread botp
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

Re: [Rails] Rails redirect_to new behaviour with Ruby 2.2 / Rails 4.2?

2015-02-13 Thread botp
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

Re: [Rails] PRB RAILS (I am a beginner)

2015-03-25 Thread botp
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

Re: [Rails] Create letters with ROR display on cmd

2015-05-07 Thread botp
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

Re: [Rails] Re: japanese input

2015-04-17 Thread botp
'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

Re: [Rails] Rails CLI server bind host defaults to 127.0.0.1, is there a way to make it default to 0.0.0.0?

2015-04-10 Thread botp
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

Re: [Rails] Condition on fields_for

2015-06-03 Thread botp
. 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

Re: [Rails] Same custom method validation with different fields of same type

2015-10-28 Thread botp
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

Re: [Rails] Adding a Postgres ENum type via. migration breaks db/schema.rb table entry

2015-11-11 Thread botp
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

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread botp
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

Re: [Rails] Re: The Basics of Creating Rails Plugins

2015-10-19 Thread botp
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

Re: [Rails] Question about length of ActionDispatch::Routing::Mapper class file

2015-09-08 Thread botp
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

Re: [Rails] ActiveRecord date field

2016-05-05 Thread botp
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.

Re: [Rails] FileUtils.mv

2016-04-18 Thread botp
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

Re: [Rails] Deletar tabela do Rails;

2016-08-19 Thread botp
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

Re: [Rails] Producing form fields from model

2016-11-14 Thread botp
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

Re: [Rails] Re: relative_url_root doesn't work correctly with Rails 5.1.4

2017-10-24 Thread botp
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

Re: [Rails] A possible mistake in Rails Active Storage documentation

2018-06-23 Thread botp
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

Re: [Rails] Model, after some time, decides it references a different (non-existent) table

2018-07-02 Thread botp
documented > feature.) > > ​(from ruby core) === Implementation from Array ary << obj-> ary Append---Pushes t

Re: [Rails] Can you plz, explain to me part of this code ?

2018-04-26 Thread botp
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 -

Re: [Rails] mutliple domains / apps > postifx

2018-07-16 Thread 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

Re: [Rails] Renaming foreign key column causes forms to fail

2018-01-19 Thread botp
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

Re: [Rails] split function splitting on spaces when data contains spaces also

2018-11-05 Thread botp
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.

Re: [Rails] 5 Ruby Tips about Array and Hash that you probably don't know

2018-12-19 Thread botp
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

Re: [Rails] Iban gem integration

2019-03-25 Thread botp
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

Re: [Rails] Re: Booting rbenv managed rails app with Systemd

2019-04-04 Thread botp
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

Re: [Rails] ActiveRecord's connection pool

2019-07-02 Thread botp
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