Re: [Rails] date_select -> params ok but nil

2014-11-19 Thread Hassan Schroeder
On Wed, Nov 19, 2014 at 6:20 PM, tom wrote: > because of this: > p params[:event].nil? > p params.inspect would be more generally useful... > ENV > /ruby-1.9.3-p194@my_gemset >> What version of Ruby/Rails are you running? Again, what version of Rails? And is there a reason to be using

Re: [Rails] date_select -> params ok but nil

2014-11-19 Thread botp
On Thu, Nov 20, 2014 at 6:40 AM, tom --> 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 f

Re: [Rails] date_select -> params ok but nil

2014-11-19 Thread tom
hi because of this: def create p params[:event].nil? p params[:event][:name] p params[:event][:from_date] results in: false "" nil ENV /ruby-1.9.3-p194@my_gemset first i thought it has something to do with gem decent_exposure, but i have disabled that again... On Wed, Nov 19, 2014 at 6:09

Re: [Rails] incompatible character encodings: ASCII-8BIT and UTF-8

2014-11-19 Thread Walter Lee Davis
On Nov 19, 2014, at 7:49 AM, Melb01 wrote: > Hi, > I have problem with showing some string in my site with Rails 4 > I get this message: > incompatible character encodings: ASCII-8BIT and UTF-8 > > concerning this html sequence in an erb file: > <%= MyString.to_s.force_encoding("UTF-8") %> > >

Re: [Rails] date_select -> params ok but nil

2014-11-19 Thread Hassan Schroeder
On Wed, Nov 19, 2014 at 2:40 PM, tom wrote: > Started POST "/events" for 127.0.0.1 at 2014-11-19 17:37:09 -0500 > Processing by EventsController#create as HTML > Parameters: {"utf8"=>"✓", > "authenticity_token"=>"JannWb1XCE12AKW4KlR56LAAmIOG1raHJh1ss4v0RBA=", > "event"=>{"name"=>"", "from_date(

[Rails] date_select -> params ok but nil

2014-11-19 Thread tom
hi, im kinda stuck... <%= form_for(@event) do |f| %> <%= f.label :from_date %> <%= date_select :event, :from_date %> . def create p params[:event].nil? p params[:event][:name] p params[:event][:from_date] if params[:event][:from_date].empty? params[:event][:from_da

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Robert Fitzpatrick wrote: Maybe I missed something earlier in the discussion, but can't you just edit it to: @verbose = true if arg == 'V' Yes, I guess so, and then uncomment all the places in the code where he has #puts if @verbose I'll give it a try, still trying to figure out how to

Re: [Rails] incompatible character encodings: ASCII-8BIT and UTF-8

2014-11-19 Thread Vladimir Gordeev
I didn't say that databases are different. I said that they could use different encodings. On Wed, Nov 19, 2014 at 11:11 PM, Melb01 wrote: > It is coming from an hypertable database, the sring is logged well wih the > word written with accent > I use the same database with my local computer with

Re: [Rails] incompatible character encodings: ASCII-8BIT and UTF-8

2014-11-19 Thread Melb01
It is coming from an hypertable database, the sring is logged well wih the word written with accent I use the same database with my local computer without problem, I have the poblem only on production server -- You received this message because you are subscribed to the Google Groups "Ruby on

Re: [Rails] Concurrency in Ruby on Rails 4

2014-11-19 Thread Hassan Schroeder
On Wed, Nov 19, 2014 at 11:35 AM, David Williams wrote: > How would you approach developing an app that requires expedient > transactions? What exactly do you mean by "expedient transactions" in the context of a web application? -- Hassan Schroeder hassan.schroe...@gmai

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Scott Ribe wrote: On Nov 19, 2014, at 11:12 AM, Robert Fitzpatrick wrote: OK, that's a relief that I can read the code, thanks for clarifying. To get verbosity, I'll need to do a lot of uncommenting and do line-by-line debuggging :-/ Jason mentioned a debugging tool for Rails 2.0 earlier, wh

[Rails] Concurrency in Ruby on Rails 4

2014-11-19 Thread David Williams
How would you approach developing an app that requires expedient transactions? Would the EventMachine gem did the trick in terms of persistence and reliability? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails

[Rails] Rails 4.0.11.1 and 4.1.7.1 have been released

2014-11-19 Thread Rafael Mendonça França
Hi everyone! Rails 4.0.11.1 and 4.1.7.1 have been released! These two releases contain only security fix that was already released as 4.0.12 and 4.1.8. You can read more about the issue [here (CVE-2014-7829)]( https://groups.google.com/forum/#!topic/rubyonrails-security/rMTQy4oRCGk). 4.0.12 and

Re: [Rails] Rake tasks

2014-11-19 Thread Scott Ribe
On Nov 19, 2014, at 11:12 AM, Robert Fitzpatrick wrote: > > OK, that's a relief that I can read the code, thanks for clarifying. To get > verbosity, I'll need to do a lot of uncommenting and do line-by-line > debuggging :-/ > > Jason mentioned a debugging tool for Rails 2.0 earlier, what about

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Scott Ribe wrote: On Nov 19, 2014, at 10:49 AM, Robert Fitzpatrick wrote: Then the code uses '#puts something if @verbose' throughout. Like I said, I'm new to ruby, but have used Perl and PHP and other languages before, I hope is what is throwing me off is the # are not comments? This almost

Re: [Rails] Rake tasks

2014-11-19 Thread Scott Ribe
On Nov 19, 2014, at 10:49 AM, Robert Fitzpatrick wrote: > > Then the code uses '#puts something if @verbose' throughout. Like I said, I'm > new to ruby, but have used Perl and PHP and other languages before, I hope is > what is throwing me off is the # are not comments? This almost looks like

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Jason Fleetwood-Boldt wrote: Without seeing the task I can't tell you the answer to that. And the fact that it runs on a cron schedule means that you probably have something like a worker in the background doing that. Normally you run rake some_task X="abc" Y="xyz" I see this piece of code

Re: [Rails] incompatible character encodings: ASCII-8BIT and UTF-8

2014-11-19 Thread Vladimir Gordeev
Where this MyString comes from? Maybe your production and local databases configured to use different encodings. On Wed, Nov 19, 2014 at 2:49 PM, Melb01 wrote: > Hi, > I have problem with showing some string in my site with Rails 4 > I get this message: > incompatible character encodings: ASCII-

[Rails] incompatible character encodings: ASCII-8BIT and UTF-8

2014-11-19 Thread Melb01
Hi, I have problem with showing some string in my site with Rails 4 I get this message: incompatible character encodings: ASCII-8BIT and UTF-8 concerning this html sequence in an erb file: <%= MyString.to_s.force_encoding("UTF-8") %> I get this problem only on *production server,* but I do not h

Re: [Rails] Hiring Ruby on Rails Developer -nerdapplabs-Noida

2014-11-19 Thread Colin Law
On 19 November 2014 05:09, rajeevsharma86 wrote: > @Colin. > > if you are an Tester without pay Go Ahead and respond in personal email > > Or a Group coordinator ? Just Inform people about Group Rules. Sorry I have no idea what information you are trying to convey with the above words. Colin >