79 questions
0
votes
0
answers
38
views
writing unit tests for rails app, which consider testing the app daemons too
I've got a Rails app that incorporates some daemons. Unfortunately, I haven't written unit tests for the app yet. I've recently decided to rectify that, but I'm facing a challenge—I can't figure out a ...
0
votes
1
answer
154
views
Ruby on Rails - Composer
i am new to the world of programming and i started programming with ruby on rails on ubuntu 20.4 through virtual machine. I'm trying to make an application with composer. only every time I type: ...
0
votes
1
answer
387
views
rails app downloading documents instead of displaying
I am creating a document upload form for my rails app, everything works fine, except when I try and display the .txt document that has just been uploaded, the document is downloaded instead?
These are ...
1
vote
1
answer
597
views
Error on trying to add Private key to AWS Opsworks
I am trying to set up a new rails app on AWS Opswork.
While trying to add a new app, I keep getting the error "Please provide a valid SSH key"
I have created a public-private key pair using ssh-...
0
votes
1
answer
50
views
Does railsapps (rails-devise-pundit) apps have multiple role support baked in?
In a stock "rails-devise-pundit" application generated using "railsapps",
does it include support for adding multiple roles for users?
A can I make John Doe have a :user role plus an :admin role
1
vote
2
answers
41
views
Whats is the default password for an application created with railsapps
What's the initial password for the "[email protected]" of a "railsapps" application?
noname_development=# select * from users;
id | email | encrypted_password ...
0
votes
1
answer
18
views
How to update the documentation of railsapps gh-pages?
Regarding "railsapps"
The documentation page at http://railsapps.github.io/rails-application-templates.html
mentions a link to "https://github.com/quickleft/prologue"
which is a dead end.
How can I ...
1
vote
0
answers
1k
views
RailsApps mysql2 gem version error with Rails 5.2.1
I am facing a mysql2 gem version error while trying to create a new RailsApps example application using Rails Composer. For example, while creating a rails-devise-roles example with the following ...
-1
votes
1
answer
49
views
Statement invalid while rendering json in Rails
for my snippet below for rendering the json
def show
@product = Product.find(params[:id])
render json: @product.to_json(:include => { :items => { :only => [:id,
:description] }})
...
1
vote
1
answer
124
views
Why is Rails composer only creating a basic app without features? `open_http': 404 Not Found (OpenURI::HTTPError)
I have just completed the detailed and well-explained Rails tutorial by Daniel Kehoe and am at the end trying to experiment with Rails Composer. I am having a problem creating the app on both Cloud 9 ...
0
votes
1
answer
181
views
Why are emails not sending in my rails app? Internal Server Error) Ch 20. Learn Rails tutorial by Daniel Kehoe
I am on Ch 20 of the Learn Rails tutorial 'Send Mail'. There is a create contact form and a notification email is supposed to be sent to my email address. I have set up configuration as per the book ...
3
votes
3
answers
23k
views
Where is the .bashrc file on Windows? (Daniel Kehoe's learn-rails tutorial book)
I previously asked a similar question with regards to cloud9, but I am now trying to do the same project in parallel on my windows 10 machine because I will not have internet access to use cloud9. I ...
0
votes
1
answer
556
views
Where is the .bashrc file in my cloud9 app ? (Daniel Kehoe's learn-rails tutorial book)
I am trying to set up the configuration in preparation for following Daniel Kehoe's learn-rails tutorial book, but I am having trouble setting up the environment variables. The book seems to explain ...
0
votes
0
answers
52
views
Using the ‘Learn Ruby on Rails’ book, why won't my Rails server start?
I am at the start of Daniel Kehoe's learn-rails tutorial book and I have just tried starting the server. The only thing I have done so far is to copy the gemfile from the github repository to make ...
5
votes
3
answers
1k
views
Sass is breaking on @extend ".bg-faded"
I used Rails Composer to create a skeleton application for the rails-devise-roles project described here:
https://github.com/RailsApps/rails-devise-roles
I'm getting a 500 error generated by the ...