Ruby on Rails Saturday, November 30, 2019



On Saturday, November 30, 2019 at 9:01:50 PM UTC-5, Ariel Juodziukynas wrote:
The form looks ok, the parameters on the request too, it's impossible to tell you something else if you have nothing on the logs (rails and the browser's network tab) that could indicate an error

El sáb., 30 nov. 2019 a las 22:37, fugee ohu (<fuge...@gmail.com>) escribió:
 I guess I'd better explain the form I just posted is from the index view and on submit it's supposed to launch the new action and load the next form

--
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/a4caf763-b02f-4d25-980d-a55310a55fa1%40googlegroups.com.

new.html.erb only has <%= render 'form' %> maybe I should be passing some parameters to render 'form' ?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f0f6582e-50ab-4edd-895b-536e8b0e5527%40googlegroups.com.

Ruby on Rails

The form looks ok, the parameters on the request too, it's impossible to tell you something else if you have nothing on the logs (rails and the browser's network tab) that could indicate an error

El sáb., 30 nov. 2019 a las 22:37, fugee ohu (<fugee279@gmail.com>) escribió:
 I guess I'd better explain the form I just posted is from the index view and on submit it's supposed to launch the new action and load the next form

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a4caf763-b02f-4d25-980d-a55310a55fa1%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcAFq6bYGXXg8aBx--CE_meVq5vwB24pgq1QXyJwrK5-nA%40mail.gmail.com.

Ruby on Rails

 I guess I'd better explain the form I just posted is from the index view and on submit it's supposed to launch the new action and load the next form

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a4caf763-b02f-4d25-980d-a55310a55fa1%40googlegroups.com.

Ruby on Rails



On Saturday, November 30, 2019 at 8:07:43 PM UTC-5, Ariel Juodziukynas wrote:
It's normal that rails adds a hidden field with the name `utf8` and a check as the value, when you submit a form using GET the hidden field goes there with the other fields, there's nothing wrong there.

You should have some error on the console if something is not working, that `utf8` parameter is ok.

El sáb., 30 nov. 2019 a las 20:28, fugee ohu (<fuge...@gmail.com>) escribió:
This request has some utf8 in between "item_type_id" and "="
GET /items/new?utf8=%E2%9C%93&item%5Bitem_type_id%5D=9&commit=New+item HTTP/1.1

--
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/4e4ee2a6-e656-4dd2-84f0-670f9eaa40b0%40googlegroups.com.

That's the last thing in the console Here's my form:

<%= form_with(model: @item, url: new_item_path(@item), method: "get") do |f| %>

     <div class="field">
         <%= f.select :item_type_id, nested_set_options(ItemType.all, @item_type) {|i| "#{'-' * i.level} #{i.name}" }, {:include_blank => "Select"}%>
     </div>

    <div class="actions">
        <%= f.submit "New item" %>
    </div>

<% end %>

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5fd17013-9f43-41c9-8580-0f5009fd3f33%40googlegroups.com.

Ruby on Rails

It's normal that rails adds a hidden field with the name `utf8` and a check as the value, when you submit a form using GET the hidden field goes there with the other fields, there's nothing wrong there.

You should have some error on the console if something is not working, that `utf8` parameter is ok.

El sáb., 30 nov. 2019 a las 20:28, fugee ohu (<fugee279@gmail.com>) escribió:
This request has some utf8 in between "item_type_id" and "="
GET /items/new?utf8=%E2%9C%93&item%5Bitem_type_id%5D=9&commit=New+item HTTP/1.1

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4e4ee2a6-e656-4dd2-84f0-670f9eaa40b0%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcBFxS92d6-28qdRmXg%3DQDR_vVA7-pzFFw5Ux7Uf3x6KjQ%40mail.gmail.com.

Ruby on Rails

This request has some utf8 in between "item_type_id" and "="
GET /items/new?utf8=%E2%9C%93&item%5Bitem_type_id%5D=9&commit=New+item HTTP/1.1

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4e4ee2a6-e656-4dd2-84f0-670f9eaa40b0%40googlegroups.com.

Ruby on Rails

I solved my problem by disabling the CSRF check on the public endpoint (according to this https://stackoverflow.com/questions/5669322/turn-off-csrf-token-in-rails-3).

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/04010c21-eb14-4e1a-8e11-7cbdf370e2c8%40googlegroups.com.

Ruby on Rails



On Friday, November 29, 2019 at 7:48:17 AM UTC-5, Ariel Juodziukynas wrote:
What do you mean that you have an error en your schema.rb? When you run a migration, rails dumps the current database schema (rails db:schema:dump). Maybe you have some merge conflict if you are using source control and someone fixed the conflict wrong, but the file shouldn't have errors since it's just a dump of the actual running database's schema.

You have all the db: tasks (run `rails -T | grep 'db:' to list all) including running the migrations, those are the only commands to change your database schema using rails.

El vie., 29 nov. 2019 a las 7:11, fugee ohu (<fuge...@gmail.com>) escribió:


On Tuesday, November 26, 2019 at 9:37:54 AM UTC-5, Ariel Juodziukynas wrote:
You were trying to reload the schema, db:schema:load requires an empty database, I guessed you were OK with removing the data. db:reset it's just a shortcut for drop > create > schema:load > seed.

Why do you want to load the schema if you already have data and you don't want to lose it? that makes no sense, if you already have data then you already have the schema loaded.

El mar., 26 nov. 2019 a las 10:59, Hasan Diwan (<hasan...@gmail.com>) escribió:
[response inline]


On Tue, 26 Nov 2019 at 05:55, fugee ohu <fuge...@gmail.com> wrote:
What would that do to my data

You'll need to back it up. Which database are you using? -- H 
-- 
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 rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWAGfMrun5ZYzUuJRbbxx24-o3iKZfKSBv%3DEx52nA3fRkA%40mail.gmail.com.

Yes right There's no data I was just curious about the db:reset command because I never heard of it before I thought there's no possiblity for an error in schema.rb How can I have an error in my schema.rb I'm thinking maybe there's a new way to load the schema in rails 6 I created the database and tried to load the schema

--
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/ab1850ac-9086-41de-a700-3419637f9aba%40googlegroups.com.

I was developing on a laptop and the screen stopped working so I took the app over to my desktop and can't load the schema I'm gonna try some different mysql2 versions It's all these associations in my models now causing the errors like "can't update parent row" I'll go through all of them and comment out lines so I can load the schema 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/98463da5-ba65-45c6-a7f6-eb25d96177e4%40googlegroups.com.

Ruby on Rails Friday, November 29, 2019

What do you mean that you have an error en your schema.rb? When you run a migration, rails dumps the current database schema (rails db:schema:dump). Maybe you have some merge conflict if you are using source control and someone fixed the conflict wrong, but the file shouldn't have errors since it's just a dump of the actual running database's schema.

You have all the db: tasks (run `rails -T | grep 'db:' to list all) including running the migrations, those are the only commands to change your database schema using rails.

El vie., 29 nov. 2019 a las 7:11, fugee ohu (<fugee279@gmail.com>) escribió:


On Tuesday, November 26, 2019 at 9:37:54 AM UTC-5, Ariel Juodziukynas wrote:
You were trying to reload the schema, db:schema:load requires an empty database, I guessed you were OK with removing the data. db:reset it's just a shortcut for drop > create > schema:load > seed.

Why do you want to load the schema if you already have data and you don't want to lose it? that makes no sense, if you already have data then you already have the schema loaded.

El mar., 26 nov. 2019 a las 10:59, Hasan Diwan (<hasan...@gmail.com>) escribió:
[response inline]


On Tue, 26 Nov 2019 at 05:55, fugee ohu <fuge...@gmail.com> wrote:
What would that do to my data

You'll need to back it up. Which database are you using? -- H 
-- 
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 rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWAGfMrun5ZYzUuJRbbxx24-o3iKZfKSBv%3DEx52nA3fRkA%40mail.gmail.com.

Yes right There's no data I was just curious about the db:reset command because I never heard of it before I thought there's no possiblity for an error in schema.rb How can I have an error in my schema.rb I'm thinking maybe there's a new way to load the schema in rails 6 I created the database and tried to load the schema

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab1850ac-9086-41de-a700-3419637f9aba%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcDH%3D_BCnQpVCYoT1WZDpwqXhOpQkp26CBeU3zUfqxL78g%40mail.gmail.com.

Ruby on Rails



On Tuesday, November 26, 2019 at 9:37:54 AM UTC-5, Ariel Juodziukynas wrote:
You were trying to reload the schema, db:schema:load requires an empty database, I guessed you were OK with removing the data. db:reset it's just a shortcut for drop > create > schema:load > seed.

Why do you want to load the schema if you already have data and you don't want to lose it? that makes no sense, if you already have data then you already have the schema loaded.

El mar., 26 nov. 2019 a las 10:59, Hasan Diwan (<hasan...@gmail.com>) escribió:
[response inline]


On Tue, 26 Nov 2019 at 05:55, fugee ohu <fuge...@gmail.com> wrote:
What would that do to my data

You'll need to back it up. Which database are you using? -- H 
-- 
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 rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWAGfMrun5ZYzUuJRbbxx24-o3iKZfKSBv%3DEx52nA3fRkA%40mail.gmail.com.

Yes right There's no data I was just curious about the db:reset command because I never heard of it before I thought there's no possiblity for an error in schema.rb How can I have an error in my schema.rb I'm thinking maybe there's a new way to load the schema in rails 6 I created the database and tried to load the schema

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab1850ac-9086-41de-a700-3419637f9aba%40googlegroups.com.

Ruby on Rails Thursday, November 28, 2019



On Wednesday, November 27, 2019 at 4:08:45 PM UTC-5, Joe Guerra wrote:
Ok, I tried everything.  But, the integration between zsh and rbenv didn't seem to work.  So, back to the bash shell and everything is okie dokie.


On Wednesday, November 27, 2019 at 1:45:56 PM UTC-5, Joe Guerra wrote:
maybe I shouldn't have changed my shell after upgrading my mac to catalina.  
my app uses ruby 2.4.1, and have setup various versions with rbenv locally and globally, but when I reboot my pc and go to my app folder, it thinks 2.5.1 is the current version (even after i set it locally and globally with rbenv).

any suggestions?

gem update --system
gem install bundler
https://bundler.io/guides/bundler_2_upgrade.html

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/685cb6e9-bdef-4db1-9d43-5eb71a6187fe%40googlegroups.com.

Ruby on Rails



On Wednesday, November 27, 2019 at 4:08:45 PM UTC-5, Joe Guerra wrote:
Ok, I tried everything.  But, the integration between zsh and rbenv didn't seem to work.  So, back to the bash shell and everything is okie dokie.


On Wednesday, November 27, 2019 at 1:45:56 PM UTC-5, Joe Guerra wrote:
maybe I shouldn't have changed my shell after upgrading my mac to catalina.  
my app uses ruby 2.4.1, and have setup various versions with rbenv locally and globally, but when I reboot my pc and go to my app folder, it thinks 2.5.1 is the current version (even after i set it locally and globally with rbenv).

any suggestions?

bundle update --bundler
gem install bundler

Read this
https://bundler.io/guides/bundler_2_upgrade.html

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0a4e926e-3b27-4118-8660-7e5fbf846196%40googlegroups.com.

Ruby on Rails Wednesday, November 27, 2019

Ok, I tried everything.  But, the integration between zsh and rbenv didn't seem to work.  So, back to the bash shell and everything is okie dokie.


On Wednesday, November 27, 2019 at 1:45:56 PM UTC-5, Joe Guerra wrote:
maybe I shouldn't have changed my shell after upgrading my mac to catalina.  
my app uses ruby 2.4.1, and have setup various versions with rbenv locally and globally, but when I reboot my pc and go to my app folder, it thinks 2.5.1 is the current version (even after i set it locally and globally with rbenv).

any suggestions?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d61f062e-5148-427c-b053-6b40cbd9085d%40googlegroups.com.

Ruby on Rails

Hi everyone,

I am happy to announce that Rails 5.2.4 has been released.


## CHANGES since 5.2.3

To view the changes for each gem, please read the changelogs on GitHub:

To see a summary of changes, please read the release on GitHub:


*Full listing*

To see the full list of changes, [check out all the commits on

## SHA-256

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-256 hashes.

Here are the checksums for 5.2.4:

```
$ shasum -a 256 *-5.2.4.gem
0ba74e3b94e4712f3d754125e494f45e5240af8f4c8c8f0f167dff3b0e0a3a96  actioncable-5.2.4.gem
c85a6f665f5d6ed48104c9984a928851dd490a49e2ef866a71530c5a62dfd87c  actionmailer-5.2.4.gem
0ccecdc86c8c98adf5a16e2a5bf55379a16e845db94bc12899f052d25ad48d91  actionpack-5.2.4.gem
19b1a9c0a26bb8d0c1cfec353784e518a61dd7e218a29f5e309c4c7d7bc5beac  actionview-5.2.4.gem
8f4baa59887eafb63b7a9f0fc194101e4c996a3210815a151270d08a0d2f22d8  activejob-5.2.4.gem
f87e407f1fc3b04c3ee680278a5af5c2b3263d2d87f8e96d555249c7bbe3f479  activemodel-5.2.4.gem
cd6eca48d5cb6859c5e09dea5ec11677791af26218c269cef8936bc0b4923a18  activerecord-5.2.4.gem
1fae89ac78f965f590d6867b3bc1546fb662b5fde780f38789ac3ad61ed8e40c  activestorage-5.2.4.gem
b826f53ae52f1250edf56d254a839ca5df7c0a9d8e8c9334629d6bbd0eb61bce  activesupport-5.2.4.gem
3abc0d1c5a6a87821ed73d0f523fbb63e09610dbdfd7f8b948e14a15f7749481  rails-5.2.4.gem
5c3a7788700b99c75be9041cab79d92a89d8c76173b232753d7ea7e6e43233ee  railties-5.2.4.gem
```

As always, huge thanks to the many contributors who helped with this release.


Ruby on Rails Tuesday, November 26, 2019

Hello,

after following 2 tutorials on Rails and getting those nice looking apps up and running, I would like to roll my first app.

It has only one model. An http view will display all records from the database.
The data input is not via an http form, but come as a POST call from another (external) app (json payload, in case it matters).

The "index" action on my XController (for listing the records) does not require authentication, but I would like to have basic authentication (hardcoded user+pass is fine) on the public endpoint (the "create" action).
I found http_basic_authenticate_with - but this seems to cover only the http session, so it didn't help with the public endpoint (or I didn't manage to use it properly).

Any pointers about what I can use to secure the public endpoint?

Thank you,
Marian

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bb79b067-ad31-4be8-97f9-85e0c78e1748%40googlegroups.com.

Ruby on Rails

You were trying to reload the schema, db:schema:load requires an empty database, I guessed you were OK with removing the data. db:reset it's just a shortcut for drop > create > schema:load > seed.

Why do you want to load the schema if you already have data and you don't want to lose it? that makes no sense, if you already have data then you already have the schema loaded.

El mar., 26 nov. 2019 a las 10:59, Hasan Diwan (<hasan.diwan@gmail.com>) escribió:
[response inline]


On Tue, 26 Nov 2019 at 05:55, fugee ohu <fugee279@gmail.com> wrote:
What would that do to my data

You'll need to back it up. Which database are you using? -- H 
-- 
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWAGfMrun5ZYzUuJRbbxx24-o3iKZfKSBv%3DEx52nA3fRkA%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcBChEKx51UOE_-g9Xc-UnnfL0HaBkrevL_%3DmyQ9Bfng7Q%40mail.gmail.com.

Ruby on Rails

[response inline]


On Tue, 26 Nov 2019 at 05:55, fugee ohu <fugee279@gmail.com> wrote:
What would that do to my data

You'll need to back it up. Which database are you using? -- H 
-- 
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWAGfMrun5ZYzUuJRbbxx24-o3iKZfKSBv%3DEx52nA3fRkA%40mail.gmail.com.

Ruby on Rails



On Tuesday, November 26, 2019 at 6:40:34 AM UTC-5, Ariel Juodziukynas wrote:
You can run rails db:reset then

El mar., 26 nov. 2019 05:37, Hasan Diwan <hasan...@gmail.com> escribió:
[response inline]

On Tue, 26 Nov 2019 at 00:00, fugee ohu <fuge...@gmail.com> wrote:
Complains that users table already exists 

bundle exec rails db:drop db:create db:migrate db:schema:load 

Seems you had a mistake in a migration. So, you need to reset your database to pristine state and start again. Hope this helps! -- H

--
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 rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWDPz0-BRfO5ohk%3DT76WKCb6JYhyqudqzqznnEBcQ0eOkQ%40mail.gmail.com.

What would that do to my data

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/961e7dba-2e77-4bcc-86d0-08db0519c018%40googlegroups.com.

Ruby on Rails

You can run rails db:reset then

El mar., 26 nov. 2019 05:37, Hasan Diwan <hasan.diwan@gmail.com> escribió:
[response inline]

On Tue, 26 Nov 2019 at 00:00, fugee ohu <fugee279@gmail.com> wrote:
Complains that users table already exists 

bundle exec rails db:drop db:create db:migrate db:schema:load 

Seems you had a mistake in a migration. So, you need to reset your database to pristine state and start again. Hope this helps! -- H

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWDPz0-BRfO5ohk%3DT76WKCb6JYhyqudqzqznnEBcQ0eOkQ%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcDSv9nTPNNmz3cjdXy4eLDB2ZU9%2B1LLz0-DVS6QV-PWGg%40mail.gmail.com.

Ruby on Rails

[response inline]

On Tue, 26 Nov 2019 at 00:00, fugee ohu <fugee279@gmail.com> wrote:
Complains that users table already exists 

bundle exec rails db:drop db:create db:migrate db:schema:load 

Seems you had a mistake in a migration. So, you need to reset your database to pristine state and start again. Hope this helps! -- H

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWDPz0-BRfO5ohk%3DT76WKCb6JYhyqudqzqznnEBcQ0eOkQ%40mail.gmail.com.

Ruby on Rails Monday, November 25, 2019



On Monday, November 25, 2019 at 10:05:18 PM UTC-5, Ariel Juodziukynas wrote:
It is `rails db:schema:load`, run `rails -T` to list all the available tasks.

El lun., 25 nov. 2019 a las 23:13, fugee ohu (<fuge...@gmail.com>) escribió:
Is there a new command to load the schema in rails 6?

--
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/a77d507f-2927-4e38-8f88-643e8e24030f%40googlegroups.com.


Complains that users table already exists

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d08accdf-2647-405c-98b9-6f794baecdcc%40googlegroups.com.

Ruby on Rails

It is `rails db:schema:load`, run `rails -T` to list all the available tasks.

El lun., 25 nov. 2019 a las 23:13, fugee ohu (<fugee279@gmail.com>) escribió:
Is there a new command to load the schema in rails 6?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a77d507f-2927-4e38-8f88-643e8e24030f%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcAzgfHGM03nmXbrF%3D3bOOLh313EWSzVCrg6YTaNDPoJGw%40mail.gmail.com.

Ruby on Rails

Is there a new command to load the schema in rails 6?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a77d507f-2927-4e38-8f88-643e8e24030f%40googlegroups.com.

Ruby on Rails



On Monday, November 25, 2019 at 6:28:35 AM UTC-5, Animatrix BD wrote:
Have you installed "yarn"
brew install yarn  
It worked for me

On Saturday, November 23, 2019 at 6:03:33 PM UTC+6, fugee ohu wrote:
$ rails webpacker:install
rails aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: type is missing;2: type is missing;3: type is missing;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: type is missing;2: type is missing;3: type is missing;"},"status":400}
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/base.rb:205:in `__raise_transport_error'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/base.rb:333:in `perform_request'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/http/faraday.rb:24:in `perform_request'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/client.rb:152:in `perform_request'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-api-7.4.0/lib/elasticsearch/api/actions/bulk.rb:88:in `bulk'



I had to download the deb and install that The apt installation had to be uninstalled

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/76bf4987-d56a-4115-b3de-6cafc9889f20%40googlegroups.com.

Ruby on Rails

Have you installed "yarn"
brew install yarn  
It worked for me

On Saturday, November 23, 2019 at 6:03:33 PM UTC+6, fugee ohu wrote:
$ rails webpacker:install
rails aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: type is missing;2: type is missing;3: type is missing;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: type is missing;2: type is missing;3: type is missing;"},"status":400}
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/base.rb:205:in `__raise_transport_error'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/base.rb:333:in `perform_request'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/http/faraday.rb:24:in `perform_request'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/client.rb:152:in `perform_request'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-api-7.4.0/lib/elasticsearch/api/actions/bulk.rb:88:in `bulk'

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fc3f1f79-2232-4f4d-84ce-421bb3a5bd19%40googlegroups.com.

Ruby on Rails Saturday, November 23, 2019



On Saturday, November 23, 2019 at 7:10:41 PM UTC-5, Ariel Juodziukynas wrote:
sass/scss files shouldn't be linked by your website, these files have to be compiled into standard .css files with sprockets, webpacker or any other sass compiler.

Usually, if you use sass-rails (or sassc-rails on newer rails version) or webpacker, both gems should take care of compiling the assets for you with proper configuration.

El sáb., 23 nov. 2019 a las 20:30, fugee ohu (<fuge...@gmail.com>) escribió:
What's supposed to cause rails to take application to mean application.scss ? The problem I'm having is my stylesheet is named application.scss and rails is looking for application.css If I name it as application.scss in stylesheet_link_tag then it looks for application.css.scss

--
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/74428116-1c8a-47b3-97e2-ee49a0c05696%40googlegroups.com.

So if I'm no longer going to use app/assets then I don't need the lines `link_tree` and `link_directory` in my manifest.js ? I previously had `//= link_tree ../images` and `//= link_directory ../javascripts .js` and `//= link_directory ../stylesheets .scss` So I removed all those scss files from app/assets/stylesheets and keep them under app/javascript/src, then what do I need in manifest.js ?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c1b791fd-a6d8-4be0-8c29-b6e42833889c%40googlegroups.com.

Ruby on Rails



On Saturday, November 23, 2019 at 7:10:41 PM UTC-5, Ariel Juodziukynas wrote:
sass/scss files shouldn't be linked by your website, these files have to be compiled into standard .css files with sprockets, webpacker or any other sass compiler.

Usually, if you use sass-rails (or sassc-rails on newer rails version) or webpacker, both gems should take care of compiling the assets for you with proper configuration.

El sáb., 23 nov. 2019 a las 20:30, fugee ohu (<fuge...@gmail.com>) escribió:
What's supposed to cause rails to take application to mean application.scss ? The problem I'm having is my stylesheet is named application.scss and rails is looking for application.css If I name it as application.scss in stylesheet_link_tag then it looks for application.css.scss

--
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/74428116-1c8a-47b3-97e2-ee49a0c05696%40googlegroups.com.

So then why did we used to name the files .scss

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f61d78fd-7e28-42a3-91e5-2a07754ef5fa%40googlegroups.com.

Ruby on Rails

sass/scss files shouldn't be linked by your website, these files have to be compiled into standard .css files with sprockets, webpacker or any other sass compiler.

Usually, if you use sass-rails (or sassc-rails on newer rails version) or webpacker, both gems should take care of compiling the assets for you with proper configuration.

El sáb., 23 nov. 2019 a las 20:30, fugee ohu (<fugee279@gmail.com>) escribió:
What's supposed to cause rails to take application to mean application.scss ? The problem I'm having is my stylesheet is named application.scss and rails is looking for application.css If I name it as application.scss in stylesheet_link_tag then it looks for application.css.scss

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/74428116-1c8a-47b3-97e2-ee49a0c05696%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcAxFW82xM-QCQyXGONWoVGWxVK%3Da97RSfCPc0q%3Dm3aAVA%40mail.gmail.com.

Ruby on Rails

Rails 6 supports both sprockets (the assets pipeline) and webpacker by default, you can use any of those. You can use app/assets/stylesheets as of previous rails versions that didn't have webpacker or you can follow webacker's readme on CSS https://github.com/rails/webpacker/blob/master/docs/css.md

El sáb., 23 nov. 2019 a las 19:44, Hasan Diwan (<hasan.diwan@gmail.com>) escribió:

app/assets/stylesheets/



Try that spot? -- H

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWBP9C3Bn087ZMfyeYo097R3DAjND-A_nbmjvOv-%2BY1DfQ%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcCrG0sNV5dtyDOeohzKGxQGJEXk-G0L0WLx9VO9ovqB0g%40mail.gmail.com.

Ruby on Rails

What's supposed to cause rails to take application to mean application.scss ? The problem I'm having is my stylesheet is named application.scss and rails is looking for application.css If I name it as application.scss in stylesheet_link_tag then it looks for application.css.scss

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/74428116-1c8a-47b3-97e2-ee49a0c05696%40googlegroups.com.

Ruby on Rails

app/assets/stylesheets/



Try that spot? -- H

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWBP9C3Bn087ZMfyeYo097R3DAjND-A_nbmjvOv-%2BY1DfQ%40mail.gmail.com.

Ruby on Rails

?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/617d3061-bb9d-4e96-bce0-b3f138f1e6bd%40googlegroups.com.

Ruby on Rails

yes, you can delete them

El sáb., 23 nov. 2019 a las 13:05, fugee ohu (<fugee279@gmail.com>) escribió:
Thanks, Delete all files from public/packs/js for a clean start?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fe484a00-4e17-43ea-a5c3-575372c1ad13%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcDod1cY6VUEcjJj_16HHk5O2mdacWbKcHwmrSdB4i%2BAtA%40mail.gmail.com.

Ruby on Rails

Thanks, Delete all files from public/packs/js for a clean start?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fe484a00-4e17-43ea-a5c3-575372c1ad13%40googlegroups.com.

Ruby on Rails

you develop inside /app/javascript/pack, webpacker compiles the js in /public/packs

El sáb., 23 nov. 2019 a las 11:50, fugee ohu (<fugee279@gmail.com>) escribió:
I read somewhere when adding webpacker to an existing rails app I'd have this directory app/javascripts/packs but in rails 6 I think it's supposed to be /public/packs What's the right path to use?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/85d70f5b-da09-4bdc-a767-8e1fff408a71%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcBUPfOy4GeXikveAjEZag26e18g5wvFitph3LdnpPa7qw%40mail.gmail.com.