add after_save callback on the instance level
Is it possible to add instance-level callbacks to rails models?
Why am I getting NoMethodError (undefined method `user_id’ for an instance of AppTransaction) in rails?
Whenever I try to save or update my AppTransaction model, it doesn’t let me. It was working before I added the account system, and then it started giving me an error about there not being a user_id method for app_transactions. Do you guys know why?
Why am I getting NoMethodError (undefined method `user_id’ for an instance of AppTransaction) in rails?
Whenever I try to save or update my AppTransaction model, it doesn’t let me. It was working before I added the account system, and then it started giving me an error about there not being a user_id method for app_transactions. Do you guys know why?
Post-hoc testing in TDD recommended?
I have a personal project that doesn’t have robust testing. I had a bit of TDD going on at the beginning, but it quickly became counterproductive as the project details changed dramatically over time. So a lot of previously written tests have become useless.
Rails – Does using partials slow views rendering?
I’m having performance issues on a Rails 3.1.0
application, now I’ve done dome changes on my queries with AR and so but views still takes too many time to render, I’ve divided the views, loops and so, on many partials that are rendered dynamically inside views and inside other partials.
Am I shooting myself in the foot if I use Mercurial for Rails development?
I’m a Rails developer and I prefer Mercurial over Git. However, I know that the Rails community is very pro-Git. So my question is it possible that my choice of version control system would turn back some developers?
Convention on model names in ruby on rails
I was doing my ER diagram for a rails application I’m about to begin with and there I have an entity called Class News
so I’d have a model ClassNew
but I don’t know if I will have problems in the future with the New
part or what would be the right way to do this o how should I call the model? since the right thing would be ClassNews
and the table should be class_news
…
Rails 7.2.1 with config.log_tags = [ :request_id ] results in large logs with long list of UUIDs on each request
I recently upgraded my Rails app from 6.1 to 7.2, and after doing this, I found that my logging volume for requests went up a lot. I inspected some of the logs and saw that they are looking like:
How much Ruby should I learn before moving to Rails? [closed]
Closed 9 years ago.
easiest way for push notifications
I wanted to implement real time push notification to one of the apps written in RoR. I don’t have any experience with nodejs, nowjs, express or socketio.