Save 36% for Black Friday! Learn more

Ruby on Rails Community Forum

Planning upgrade from Rails 3 to 5. How to transition assets from pipeline to webpack gracefully ? Coffee & ES6

1
Rails
Hello, We plan to upgrade a production app from Rails 3 to 5.2. We basically plan to use a mirror app since the production app is untested. Current app is using jquery, coffee and asset pipeline ...
Ernesto Tagwerker replied

How can I get a file object from active storage to attach to a different model?

1
Rails
I'd like to access a file object that already exists in active storage and re-attach it to another model. Something like `@newmodel.image.attach(file_object_already_in_active_storage`) Is this po...
Brian Carpenter replied
Solved

Approach/thoughts for longterm settings outside of the database?

0
Rails
Beginner, playing around with Rails 6.0. I would like to allow the admin of a Rails site to change the site for all anonymous users who come to it: Settings like -how many articles per page whil...
sweedledee posted

Setup Ubuntu 14.04 Trusty Tahr Discussion

0
General

Rails & Vue.js Trello Clone - Part 2 Discussion

20
General
Wow a lot to process nice. Will keep a eye on this as I like to move to more frontend stuff. Thank you Chris
Someone replied

Setup Ubuntu 20.10 Groovy Gorilla Discussion

0
General

Using elasticsearch/searchkick to run a search bar via my navbar and show results in a search.html not index.html? ..

0
General
Hello, I just finished going over Chris's two great railscasts dealing with search. However, I wanted to put my search bar on my navbar so that whenever someone searches the results I will be take...
alexsunny posted

Require Work Email Address on Registration Discussion

2
General
Thanks Chris! Pretty straightforward indeed.
Marc Köhlbrugge replied

Multiple select for CSV Export?..

1
General
Hello, My users can create a report record which is basically a scaffolded model "Report" with controller and views. The users can use this model to create records that a CSV method is using to qu...
alexsunny replied
Solved

How to Test and Assert Link text is not on Page with Rails Discussion

1
General
I had to use `assert_select` for this in Rails 6. `assert_selector` wouldn't work.
Abdullah Hashim replied

how to move existing body content to use action text?

9
Rails
I followed the great video Chris did on action text, however, I have an existing data structure and want to move it over to use actiontext for editing the body content. How can i display the old ...
Anthony Lee replied

Vue.js Trello Clone in Rails - Part 5 Discussion

2
General
I will try flexbox instead. It is 2018 =)Maybe something like this https://codepen.io/jaahoo/p...
TBlackford replied

Batching Backgrounds Jobs with Sidekiq Discussion

4
General
Very nice, thanks for sharing.
mrichardsJBOIT replied

Deploy rails project using subdirectories

1
Servers
deploy the existing project with sub-directory without any change in project routes. For example: project should run on https://domain.com/myproject/home instead of https://domain.com/home need to ...
Alexey Poimtsev replied

My html.erb view is not being loaded with style, after ajax submission.

0
Rails
0 I have created a partial that gets rendered on my index page, via AJAX. This works flawless. However when I access the route, that i also want the rendered partial to show up on, it renders wit...
Doctuh posted

error with purgecss and Tailwind 2

3
Javascript
Hey there, I am facing the following problem. In production, purgecss is preventing all all css from `@tailwindcss/forms` from being rendered properly. When I comment out purgecss everything is wor...
Chris Oliver replied

How do I force users to complete their profile after sign up?

1
Rails
I'd like to 'force' users to complete their profiles after having signed up on a Rails monolith app.
Chris Oliver replied

Remote form - update partial in Rails 6

2
Rails
This may sound super dumb but is there a new and improved way to remotely update partials in Rails 6. I've used the 'update.js.erb' file before to render the partial but for rails 6 is there an upd...
Chris Oliver replied
Solved

How can I do modeling for items?

0
General
Hello all, Items Category contains general information on that category whether it can be taken on a flight. http://192168101.com/ What I need to here is, if items and the categories are already e...
FrazerRossi posted

Please help!!! My App is Down

2
Rails
Hello my app is down this morning saying ***500 Internal Server Error If you are the administrator of this website, then please read this web application's log file and/or the web server's log file...
Chris Oliver replied
Solved

Learning Ruby on Rails? Join our newsletter.

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