SMEHSAN

Joined

380 Experience
0 Lessons Completed
0 Questions Solved

Activity

Hello I have a fresh ubuntu 20.04 installation. now i am trying to install rails on my ubuntu.
when i run this command, rbenv install 2.7.1 it is showing the following errors.

Downloading ruby-2.7.1.tar.bz2...
https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
error: failed to download ruby-2.7.1.tar.bz2

BUILD FAILED (Ubuntu 20.04 using ruby-build 20200520-4-g9b7acf6)

can any one please tell me, where is the problem?

Thank you

Posted in error showing in production deployment.

Hello
I am hosting my rails site on digitalocean. and i am facing a strange problem. some times when i am trying to deploy my app on production, it is showing the following errors.
rake stderr: rake aborted!
ExecJS::RuntimeError:

what ever the mistake is, it is showing the same error.
is there any way to get the actual error?
or how can i solve this problem.
Thank you

Posted in 403 errors on Nginx server

Hello,
I have installed ruby on rails on digital ocean with NGINX and Passanger.
the site was working find but after trying to install free ssl, it goes full wrong.
i was following this article and i made some mistakes.
https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
and the site down with 403 forbidden errors.

How can i overcome this problem?

thank you

Posted in install postgresql showing errors.

Hello,
I am trying to deploy my rails app on digital ocean. and am following this article https://gorails.com/deploy/ubuntu/18.04
but when i am trying to run this command sudo apt-get install postgresql postgresql-contrib libpq-dev
it is showing the following errors.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpq-dev is already the newest version (11.2-1.pgdg16.04+1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 postgresql : Depends: postgresql-11 but it is not going to be installed
 postgresql-contrib : Depends: postgresql-contrib-11
E: Unable to correct problems, you have held broken packages.

What is the problem an what should i do.

[I am workign with my new user, not in root user]

Thank you

Posted in running new app showing error.

Thank you Oliver for you valuable comment.

Posted in running new app showing error.

Hello,
i am using rails 5.2.
when ever i create a new app and run server, it is showing the following errors.

Puma caught this error: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile. (LoadError)

and to fix this i always have to install this
gem 'sqlite3', '~> 1.3.6'
to fix this issue.

how can i get the proper solution for this.
thank you.

Posted in How can i create a contact form in rails.

@Chris Oliver thank you.
but if i don't want to use any gems for that.
what should i do?

Thank you

Posted in How can i create a contact form in rails.

Hello,
currently i am trying to add a contact page to my blog.
as a biggener i don't know how to do that.
can any one please tell me, how can i do that.
and is there any available tutorial for that, which i can follow.

thank you.

Posted in how can i add username in devise.

Thank you

Posted in how can i add username in devise.

Hello,
I want to add username in devise. so that user can login with username and password.
I have already added devise in my app. and can login with email and password.
How can i do that?

thank you

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

© 2023 GoRails, LLC. All rights reserved.