Re: [Rails] activerecord wrong number of arguments 3 given 0..2 expected

2020-01-03 Thread fugee ohu


On Thursday, January 2, 2020 at 7:15:40 PM UTC-5, hasan...@gmail.com wrote:
>
> To set strict_mode on MySQL in rails, the knob you want is `strict: false`
>
>
> On Thu, 2 Jan 2020 at 16:06, fugee ohu > 
> wrote:
>
>> I'm thinking I'm getting this is because of mysql sql_mode traditional vs 
>> strict When I run select @@sql_mode on mysql console it returns a list of 
>> modes which include TRADITIONAL somewhere in the middle of the list
>>
>> database.yml
>>
>> default: 
>>   adapter: mysql2
>>   encoding: utf8
>>   pool: 5
>>   socket: /var/run/mysqld/mysqld.sock
>>
>>
>> development:
>>   <<: *default
>>   database: mydb_development
>>   username: myusername
>>   password: mypassword
>>   sql_mode: TRADITIONAL
>>
>> -- 
>> 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 rubyonra...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/rubyonrails-talk/7349aa08-8212-4c18-981e-fb1412e8118d%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> OpenPGP: 
> https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
> If you wish to request my time, please do so using 
> *bit.ly/hd1AppointmentRequest 
> *.
> Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest 
> *.
>
> Sent 
> from my mobile device
> Envoye de mon portable
>

Thanks   I found the cause of the error by running `rake 
assets:precompile`, I had an extra option that didn't belong in 
app/assets/config/manifest.js I had put //= link_directory ../stylesheets 
.css .scss where it will only only one option I reverted to //= 
link_directory ../stylesheets .css to solve

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8c149971-58f1-4a8f-a4c1-668913ee493c%40googlegroups.com.


Re: [Rails] activerecord wrong number of arguments 3 given 0..2 expected

2020-01-02 Thread Hasan Diwan
To set strict_mode on MySQL in rails, the knob you want is `strict: false`


On Thu, 2 Jan 2020 at 16:06, fugee ohu  wrote:

> I'm thinking I'm getting this is because of mysql sql_mode traditional vs
> strict When I run select @@sql_mode on mysql console it returns a list of
> modes which include TRADITIONAL somewhere in the middle of the list
>
> database.yml
>
> default: 
>   adapter: mysql2
>   encoding: utf8
>   pool: 5
>   socket: /var/run/mysqld/mysqld.sock
>
>
> development:
>   <<: *default
>   database: mydb_development
>   username: myusername
>   password: mypassword
>   sql_mode: TRADITIONAL
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/7349aa08-8212-4c18-981e-fb1412e8118d%40googlegroups.com
> 
> .
>


-- 
OpenPGP:
https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWDeFA4ch4bxXnBUvj1Potacw2L%3D7SVPaUFjjuMOjWY7vA%40mail.gmail.com.


[Rails] activerecord wrong number of arguments 3 given 0..2 expected

2020-01-02 Thread fugee ohu
I'm thinking I'm getting this is because of mysql sql_mode traditional vs 
strict When I run select @@sql_mode on mysql console it returns a list of 
modes which include TRADITIONAL somewhere in the middle of the list

database.yml

default: 
  adapter: mysql2
  encoding: utf8
  pool: 5
  socket: /var/run/mysqld/mysqld.sock


development:
  <<: *default
  database: mydb_development
  username: myusername
  password: mypassword
  sql_mode: TRADITIONAL

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/7349aa08-8212-4c18-981e-fb1412e8118d%40googlegroups.com.