Nested Forms Tutorial: How do you display the Tasks in the Project Index and Show Views?
Ah, another typo—though you got it working, but for maintainability—a (possible) solution. `@projects_id` returns an object, while it needs an array. That line should be something like this: `@proj...eelcoj replied • Solved
encounterd some problems with devise.
i checked my tables column in console all column were present ...... and even in schema the columns are present do i have to send params by those name somewhere ....sameer replied • Solved
I would recommend accumulating the products and their assocaited quantities as objects inside a local JS array. When the end-user presses "send", you can catch that event and build/send a FormData(...pupdogg replied • Solved
How can I improve query time in SQL ? (PostgreSQL)
Any ?Boris Bresciani replied • Solved
TinyTds::Error (closed connection): when using Apache/Passenger
Hello Chris, I am only using Puma or Passenger, definitely not both at the same time. When using Puma I start the rails server (i.e rails s -e production) from the application directory and the pa...William Jones replied • Solved
Contribute to a gem
Make a pull request. That is generally the accepted means to contribute. If the maintainer finds value in the pull request, they can merge it in. If you create a pull request and the maintainer ...lucywilson replied • Solved
Routing for Admin area not working
Amazing! Thank yous very much! All working now... Initially It was only Creatint but not saving but I just removed the `method: :post`Nelson replied • Solved
How to do a incremental backup
I was using postgres database. Changed wal_level to replica, & turned on archive_mode. Then it started generating wal files, which I used to restore to point in time recovery.Nithil replied • Solved
How do I create a parent record from the child when the parent doesn't exist?
I mananged to solve this. Here's what I did for anyone that comes across this in the future. Note in the `new` action I have `@note.build_chapter` rather than `@note.chapter.build` ``` class Bo...Nino Rosella replied • Solved
How do I improve these relationships (Rails Association question) ?
Your `Bet` model would have two `belongs_to` associations (one for the creator and one for the backer or however you'd like to call them): ``` class Bet < ApplicationRecord belongs_to :cr...Nicholas Bayley replied • Solved
Manipulate photos already on S3 or Spaces
Jesper, thanks for the info.Ryan Carter replied • Solved
Command 'rails' not found but it used to work perfectly...
Ok so the best thing to do may be to remove any trace of rbenv ..? In the end the main problem was just because I used an other Terminal version (Terminator in place of the classic one) but anyw...Damian Nelwep replied • Solved
NameError (undefined local variable or method `fetch_records' for ....
Hey Chris, I found the solution. https://github.com/jbox-web/ajax-datatables-rails/blob/master/doc/migrate.md I used the old methods... Thanks for your help! and support!Victor Nizeyimana replied • Solved
NoMethodError (undefined method `def_delegators' for ChatroomsDatatable:Class):
It is working now. Ough, next error 💩; Completed 500 Internal Server Error in 14754ms (ActiveRecord: 17.1ms) NameError (undefined local variable or method `fetch_records' for #):Victor Nizeyimana replied • Solved
Rails Button_tag not submitting edit form, but submits new form
fingers crossed they dont mess too much, could be a decent browser. I wish Google would reduce the resources used though, still a beast of a browser.Alan Reid replied • Solved
ActionController::RoutingError (No route matches [GET] "/assets/images/4.jpg"):
If you put the images in your `app/assets/images` directory, then you should be able to call the image directly with no prefix in the path. ie. `image_url('logo.png')`Alan Reid replied • Solved
Separate Asset Pipeline
Short answer: by using `` and some conditional on the `application.html`. So if you're in the admin controller do display one specific css/js set and a different one if not.Nelson replied • Solved