Re: [Rails] Re: ruby clean up

2018-07-03 Thread Hassan Schroeder
On Tue, Jul 3, 2018 at 10:25 AM, Joe Guerra wrote: > I don't think so. No luck so far. >> But chances are at some point you'll run into opportunities/need to >> work on other people's legacy code at least. :-) But "so far" doesn't negate the above point. And you'll be way better off if you're

Re: [Rails] ArgumentError at Localhost

2018-07-03 Thread Walter Lee Davis
> On Jul 3, 2018, at 9:45 AM, Stephanie_Snowflake > wrote: > > #film.rb > def self.to_csv(options = {}) > CSV.generate(options) do |csv| > csv << %w(Serial Formula Width Length Area Shelf SO Phase) > all.join_dimensions.each do |f| > csv << [f.serial, f.formula, f.wid

Re: [Rails] Re: ruby clean up

2018-07-03 Thread Joe Guerra
I don't think so. No luck so far. On Tuesday, July 3, 2018 at 12:06:00 PM UTC-4, Hassan Schroeder wrote: > > On Tue, Jul 3, 2018 at 8:37 AM, Joe Guerra > wrote: > > I don't have any legacy code. Just trying to learn this stuff. > > But chances are at some point you'll run into opportunities/

Re: [Rails] Re: ruby clean up

2018-07-03 Thread Hassan Schroeder
On Tue, Jul 3, 2018 at 8:37 AM, Joe Guerra wrote: > I don't have any legacy code. Just trying to learn this stuff. But chances are at some point you'll run into opportunities/need to work on other people's legacy code at least. :-) I would strongly recommend a version manager like rvm or rbenv

[Rails] Re: ruby clean up

2018-07-03 Thread Joe Guerra
I don't have any legacy code. Just trying to learn this stuff. On Tuesday, July 3, 2018 at 10:50:53 AM UTC-4, Joe Guerra wrote: > > I have several versions of ruby on my mac, I don't know why I would need > them. But, how would I go about removing previously installed versions? > I'm up to Ru

[Rails] Re: ruby clean up

2018-07-03 Thread Joe Guerra
I used homebrew to install ruby. I guess I have to install rails on top of each version too. On Tuesday, July 3, 2018 at 10:50:53 AM UTC-4, Joe Guerra wrote: > > I have several versions of ruby on my mac, I don't know why I would need > them. But, how would I go about removing previously in

Re: [Rails] ruby clean up

2018-07-03 Thread Hassan Schroeder
On Tue, Jul 3, 2018 at 7:50 AM, Joe Guerra wrote: > I have several versions of ruby on my mac, I don't know why I would need > them. You might need multiple versions because you have legacy code to maintain, or just like to experiment with rubies other than MRI. > But, how would I go about remov

[Rails] ruby clean up

2018-07-03 Thread Joe Guerra
I have several versions of ruby on my mac, I don't know why I would need them. But, how would I go about removing previously installed versions? I'm up to Ruby 2.5 now. Thanks, Joe -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To u

Re: [Rails] ArgumentError at Localhost

2018-07-03 Thread Stephanie_Snowflake
#film.rb def self.to_csv(options = {}) CSV.generate(options) do |csv| csv << %w(Serial Formula Width Length Area Shelf SO Phase) all.join_dimensions.each do |f| csv << [f.serial, f.formula, f.width, f.length, f.area, f.shelf, f.sales_order_code, f.phase] end end

Re: [Rails] ArgumentError at Localhost

2018-07-03 Thread Walter Lee Davis
Sure. You'll need to either shim the call to raw params with something like params.to_insecure_h, or actually fix the problem by selecting the specific params you mean with a strong parameters accessor method, something like def nav_params params.permit(:controller, :action, :id) end and then

[Rails] ArgumentError at Localhost

2018-07-03 Thread Stephanie_Snowflake
Trying to update an existing app from Rails 4.2 to 5.2 (currently in Rails 5.0) Attempting to generate a URL from non-sanitized request parameters! An attacker can inject malicious data into the generated URL, such as changing the host. Whitelist and sanitize passed parameters to be secure. i