SMEHSAN

Joined

350 Experience
0 Lessons Completed
0 Questions Solved

Activity

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

Posted in Setup Ubuntu 16.04 Xenial Xerus Discussion

Hello,
I have install rails and  i want to use mysql for database.
i have install mysql but how can i see the database in browser.
like localhost/phpmyadmin

Thank You

Posted in Setup Ubuntu 18.04 Bionic Beaver Discussion

Ubuntu 18.04 with LTS is released now.
can any one update this documentation please.
Thank you
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.