Ruby on Rails Community Forum
How to add an image to prawn pdf?
0
Rails
I'm wondering how to add an image to a prawn pdf from active storage. I've tried a number of ways and can't seem to get it to render.
Thanks in advance,
Steve
Stephen Sizer posted
Archive old pages to a static page
1
Rails
Maybe a weird question, but I have a report dashboard application, where a specific report contains a lot of records in the database. In general users only check the last 3 reports frequently, so I...
Jesus Castello replied
Multiple forms one submit.
0
Rails
Hi there!
I've a view that needs to generate a form table, based on clients and days. For 7 days it creates
View (i've tried to do
<%= form_for @effort, data: {remote: true} do |f| %>
...
kriera posted
Can someone please do me a big favor?
2
General
Hi Guys! I don't know if this is right or wrong for posting this here. If wrong, you can please notify me and i'll delete this off.
I'm a big fan or Chris and GoRails because of the really nice tu...
Tolase Kelvin Adegbite replied
Fullcalendar-Scheduler Timeline is not show events in Rails 5.0
0
Rails
Hello, I am using postgres as database, rails 5.0 and ruby 2.4. The problem is, that I have this pur html calendar unsing timeline and timegrid, works ok, when I pass it to my RoR project, only wor...
erniux third posted
How to post remote action and no redirect? ActionCable Series
0
Rails
Trying to submit a form that has a create action in another controller but does not redirect to or render the page (just stay on the page).
Error:
```
MessagesController#create is missing a templa...
BrandonKlotz posted
User Onboarding Progress Bar Discussion
8
General
Great episode! One thing that would improve these for me would be to include testing. Thanks
Taylor Cooney replied
Bootstrap class on individual tags in tag list
0
General
Hi Guys,
I am using the "acts as taggable on" gem and it's working perfectly. The issue I'm having is trying to style the individual tags in the list. I have the code below but it applys the pill...
Gerard Donnelly posted
in app notifications using stimulus and ujs
6
General
I am attempting in app notifications similar to how Chris did it in the tutorial but trying to update it to use Stimulus but i my data-target doesn't seem to be in scope in the ajax success callbac...
Joel replied
how do i mount a full Vue template into my rails app
1
Rails
I'm preparing for a hackaton and my teammate built a Vue app for the frontend.
I've installed rails and vue webpack, and Vue is working well.
But I don't know how to incorporate the Vue frontend m...
Tabish Iqbal replied
Best Gem and Instructions for setting up followers one way.
2
General
Hi Guys,
I have an artist model and I want users to be able to follow them without being followed back. Is there a gem that I can use to do this and is there any documentation on setting that up?...
Gerard Donnelly replied
How do i create these associations so they are sortable?
0
General
I need some help figuring out how I should associate my models.
I have three models:
```
class Series < ApplicationRecord
has_many :modules
has_many :episodes
end
```
```
class Module <...
Twig posted
Regex getting hashtags
0
Ruby
I'm wanting to capture all hastags from the richtext field. I thought I had a solution until I came across testing where the richtext editor put HTML entites into the markup.
```
/#([\w]+)/
```
`...
Stephen Sizer posted
How do Rails developers work with JS developers on a project?
5
General
Hi there!
I've been the only developer at my workplace for a while now and I've been coding in Rails, primarily. I don't have any formal qualifications in development, but I've been self-learning ...
Chris Oliver replied
Getting No route matches "index.html.var" errors
0
General
Hello,
My Ruby app has been running for the last two months on Hostgator with no issues. I have not changed one line of code.
All of a sudden, on March 9th, trying to access my website using the ba...
Gary posted
Screencast requests: Global ID and @mentions
3
Site Feedback
After watching the recent screencast on Action Text and @mentions, I became curious as to how Rails stores references to these associations in texts. Turns out it uses something called Global ID:
...
Chris Oliver replied
Adding an inline style to a Datetime_select field in simple_form
3
Rails
How do I add an inline style to a Datetime_select field in simple_form?
What I would like to have worked (this is in Slim):
`= f.datetime_select :published_at, style="width:auto;"`
but this isn't...
ramzieus replied
Stimulus - flatpickr
0
Javascript
Hi all i've been trying to do one thing without sucess for few days...
i want to select a date on the flatpickr and then based on that date create a table
Date selected Date selected -1day Date s...
kriera posted
Multiple logins
0
General
Hi,
What happens if we login with same credentials simultaneously. How to resolve such issue? And How to restrict other user from login if one user is already logged in?
satish posted
rails 4.2.8 - stylesheet_link_tag throws ActionView::Template::Error: no implicit conversion of nil into String
0
Rails
I'm trying to update a rails app which runs totally fine if I use rails 4.2.4 (the version it's been developed on) upto rails 4.2.7
As soon as I switch to rails 4.2.8 or later (tested all versio...
Widu Wittekindt posted