Francisco Morales Sánchez

Joined

2,810 Experience
27 Lessons Completed
0 Questions Solved

Activity

you save me.
Thanks!

Hi
I get this error: OAuth::Unauthorized

OAuth::Unauthorized
        self.token_request(http_method, uri.path, token, request_options, arguments)
      when (400..499)
        raise OAuth::Unauthorized, response
      else
        response.error!
      end

Please your help

this was ver useful for my.

thanks!

Hi
I get an error on User.all
Object doesn't support #inspect

my console output
ubuntu@LAPTOP-MIO8EIGO:~/projects/scheduled_tweets$ rails c
Loading development environment (Rails 6.1.4.1)
irb(main):001:0> User
=> User (call 'User.connection' to establish a connection)
irb(main):002:0> User.all
(51.7ms) SELECT sqlite_version()
User Load (1.2ms) SELECT "users".
FROM "users"
(Object doesn't support #inspect)
=>

Posted in error in rake db:create command

Hi Chris

Thanks for your comment.
I've run posgresql service and in other console of ubuntu I run command rake db:create, and I get the same message.
Maybe I neccessary need to create the database first such as in laravel would do? or I'm in the wrong route?.
I only need solve this issue to start with RoR.

Here the consoles
(Postgresql service)
This message is shown once a day. To disable it please create the
/home/ubuntu/.hushlogin file.
ubuntu@LAPTOP-MIO8EIGO:~$ sudo service postgresql start
[sudo] password for ubuntu:

  • Starting PostgreSQL 12 database server [ OK ] ubuntu@LAPTOP-MIO8EIGO:~$ sudo -u postgres psql psql (12.8 (Ubuntu 12.8-0ubuntu0.20.04.1)) Type "help" for help.

postgres=#

RoR app
ubuntu@LAPTOP-MIO8EIGO:/mnt/c/code/myapp$ rake db:create
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Couldn't create 'myapp_development' database. Please check your configuration.
rake aborted!
ActiveRecord::NoDatabaseError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Caused by:
PG::ConnectionBad: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Tasks: TOP => db:create
(See full trace by running task with --trace)
ubuntu@LAPTOP-MIO8EIGO:/mnt/c/code/myapp$

thank you

Posted in error in rake db:create command

Hi everyone

I'm getting this error when I try to create db (I've guided me with https://gorails.com/setup/windows/10). Using WSL.
All step go well, till this command: rake db:create

could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Couldn't create 'myapp_development' database. Please check your configuration.
rake aborted!
ActiveRecord::NoDatabaseError: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


Caused by:
PG::ConnectionBad: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Tasks: TOP => db:create
(See full trace by running task with --trace)

Thanks for your help

Posted in Setup Windows 10 Discussion

Hi
after rake db:create I got and error
rake aborted!
LoadError: cannot load such file -- /mnt/c/myapp/config/application
/mnt/c/myapp/rakefile:4:in require_relative'
/mnt/c/myapp/rakefile:4:in
'
(See full trace by running task with --trace)

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.