Proper location for null objects
Alex, I'm chiming in with some practical experience, having written several medium-size applications with 50+ models. http://blog.makandra.com/2014/12/organizing-large-rails-projects-with-nam...Dan LeGrand replied • Solved
why my rails server logs show rendering a page two times, it that normal or there is something wrong with my code? Should it be only single time?
somehow the suggestion from @shakycode solve my issue now my logs does not show double render.naveen kumar replied • Solved
Error monitoring and notification for RoR
the fact that errbit uses mongo does not make me happy. (or at least that it's not made such that you can use whatever backend you want) and that you apparently need to run a job to 'clear out' err...Ashley Engelund replied • Solved
why there is no crsf token when i use remote true with data type as "script" ? How this is different from ajax?
Hey Naveen, In this case, it looks like you created a `select` without a matching `form` tag. The CSRF token actually gets generated by the `form_tag` and `form_for` helpers so if you just wrap ...Chris Oliver replied • Solved
How did you become good at back end development / Ruby on Rails?
I would agree with others here, Google is a massive help. But Chris has built a fantastic comminuty here at GoRails along with a wealth of amazing resources. With that I would say never be affraid ...Alan Reid replied • Solved
has_many :through association woes
Your suggestion above worked to set the user_id in my project_assignments join table. After tinkering with this for longer I think the other problem I'm having is being caused by trying to use ...Adrian DeGus replied • Solved
API design/routing with nested resources
Let us know how the implementation goes!Chris Oliver replied • Solved
How can I subscribe a user when creating a new project?
Wow! Thanks for taking the time to answer. Always so helpful Chris! :grinning:Lauro replied • Solved
How do I debug why my ActionCable broadcast is returning nil?
Yeah, I remember restarting everything, but yes, computers can be fickle.Matt Taylor replied • Solved
Track user's usage per month
Thanks for the thorough answer, Chris. I didn't explain it all too well. With 1. I meant simply `*_counter` columns on the User without any extra stuff going on. I feel mostly for the extra "...eelcoj replied • Solved
Solutions for high memory usage in rails development or production(heroku)
@masud, thanks but I'm already familiar with AR and DB optimization. I was wondering what your caching issue was that you made mention of.shakycode replied • Solved
How do I add a default time of 6:45pm
its ok in my area model i converted this to **this usual_start_time.to_formatted_s(:time)** and is workingNeil Patel replied • Solved
How do I rollback a database migration and then update it
Hi Jack thanks for getting back ( its not been deployed but have pushed via git to a shared repo) so I have done rails db:rollback == 20170120123129 AddUsualStartTimeToAreas: reverting ==...Neil Patel replied • Solved
Retrieve all Project Threads where a given users has posted a Project Post
You need another table that handles assignments to threads. ```ruby # project_thread_access model # you'll need user_id and project_thread_id columns in this model belongs_to :project_thread_...Jacob Montgomery replied • Solved
Problem associating nested resource with Devise current_user method
Oh wow can't believe I didn't notice that myself lol It works like a charm now, thanks!! I'm also excited at the other takeaways from this: 1. I can pull only the ID's from objects when they...Adrian DeGus replied • Solved
How do i print out validation error?
Using Rails 5. This is what i had to do to solve my issue. I changed my forum_thread model and added `:inverse_of => :forum_thread` on the `has_many :forum_posts` ``` class ForumThread <...Matt Taylor replied • Solved
[Feature Request] Ask for Topic/Episodes/Series
Oh! I see it now on the footer. Thank you!Jorge Dominguez replied • Solved
How is routing done with a conditional in url?
Thanks guys.. This clears it up for me!!Matt Taylor replied • Solved
How do I check if runner.interest is not null in this interpolation?
Yep, you're correct! That is called the [ternary operator](https://en.wikipedia.org/wiki/Ternary_operation) Just be aware that short code is not an absolute goal - clarity is **always** better t...Jacob Montgomery replied • Solved