Bootstrap-Sass Not working Entirely

1
Rails
I can tell that bootstrap is working but my navbar is not styled at all. I've tried several things to no avail. Any help would be greatly appreciated. This would be a huge milestone for me if I cou...
Jeremy Hill replied
Solved

ActiveRecord/Routing madness

0
Rails
I'm not sure whats happening here, I feel like I've done this successfully in the past but for some reason my app is crashing all over. This is quite simple. Ive got a model `Employees` and it has...
Solved

How should I deal with lots of images?

4
Rails
I have a Rails app that lets users select an invoice from a list of invoices. When selected a view of the image of the invoice is displayed with an image of the customer signature overlayed on top....
William Jones replied
Solved

[Administrate] Autocomplete on 'foo: Field::BelongsTo'

2
Gems / Libraries
Hello, I'm currently doing some tests using Administrate to see if the functionality can be shaped in a way that is convenient for me... Some things have been quite easy and for the most part sati...
Nelson Casanova replied
Solved

"You must use Bundler 2 or greater..." Error

1
Rails
rails -v `Rails 5.2.3` ruby -v `ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]` bundler -v `Bundler version 2.0.1` On creating a new app and trying `rake db:create` i get: `You must use ...
Chris Oliver replied
Solved

Display Posts on Homepage

2
Rails
I am building a social app and I want to display the content of the /posts page (index.html.erb) on the homepage if a user is logged in. The code below works just fine on the /posts page to displ...
MikeLangford replied
Solved

Access the request object in a helper in a helper test (minitest)

2
Testing
Using Rails 6 and minitest, I am testing a helper method which generates a JWT token to make a request to an external service. Inside the JWT's payload hash, I need the pass the source url. Ideally...
Wout replied
Solved

Page blinking when using tailwindcss

1
CSS
Hello guys, I am trying to use tailwindcss on a 5.2 ruby on rails application with webpack. Everything is set up and works well according to the video [How to use Tailwind CSS with Rails](https://...
edouard replied
Solved

To use Rails 6 or Not

2
General
Hey Go Rails Fam, I'm starting a new project this weekend and I was wondering should I user Rails 5.2.3 or just start the project with Rails 6.0.0.rc1? Let me know what you think. Cheers Rob
Rob Thomas replied
Solved

Anyone had luck with Active Storage and Cloud Front?

2
General
Hey everyone, I am working on an on demand video site that would (ideally) involve a user uploading a video via rails active storage direct upload to s3, then that video being served up via cloud...
Dalton Cole replied
Solved

What is a elegant way for embedding vue component into rails view template

0
Ruby
Hi, I'm doing this way like as follow in the "***.html.erb" ``` ``` here I'm wondering if I should not vue component tag into the rails template or should I do this way? ``` <%= content_t...
Adrian Uribes posted
Solved

Active Query: object date within the next 30 days.

4
Rails
Hi there, I'm fairly new to programming and rails. I was wondering if someone could help point me in the right direction here. I've created a new date field in Active Record and I'm trying to ite...
Matt replied
Solved

creating multiple input fields in rails

0
Rails
<% (1..18).each do %> <%= input type="number" style="width: 8px" %> <% end %>
lucywilson posted
Solved

How I can use extra params in habtm without so many troubles?

1
Rails
I have a model `Station` ``` class Station &lt; ApplicationRecord validates :name, presence: true has_many :ways has_many :routes, through: :ways has_and_belongs_to_many :tickets def upd...
Jack replied
Solved

How do I structure a Conversation between two models?

6
Rails
I have a `Store` object that has an `email_address` attribute. Using the logic from and [How To Build A Form](https://gorails.com/series/how-to-build-a-forum) and [Handling Inbound Email Parsing wi...
Taylor Cooney replied
Solved

How to fix params require for form_for contact in multi controller view

1
Rails
I have a problem in my contact form_for, I have one contact form and I want to render my contact form in my product view. If I make that I have a problem with my require params My contact_params w...
Anthony BESSON replied
Solved

Have Stripe public key show up

3
Rails
Hi Chris, I went through the master class for Stripe and your DigitalOcean tutorial. Attempting to combine my knowledge. I was able to deploy the app: http://165.22.132.173/pricing As you can se...
Chris Oliver replied
Solved

jquery doesn't work in js.erb file

2
Rails
Hey I'm working on an rails 6 application and try to render an partial in an js.erb file but get this error in the chrome console: &gt; Uncaught TypeError: Cannot read property 'append' of null ...
Steven Torrence replied
Solved

How do I change timezone in Ahoy analitics gem ?

1
Rails
I search a lot but no result
ramzieus replied
Solved

Refactoring controllers to keep them RESTful

3
Rails
Hi gang I have a feature where a user can query the Google Books API with an ISBN number and get the book as a response. I have this all working nicely, but I'd like to refactor my `Books` control...
Nino Rosella replied
Solved

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.