Multi tenant best strategy
Wow Aniket, Thanks you so much for the offer. I get the idea, the account / tenant owner are going to be global and then this tenant owner should invite the users to the private section (user mo...Giancarlo Corzo replied • Solved
Caching static pages without CSRF token
Great! I'll keep CSRF token for static pages then. Thanks for your help!Nicolas Brousse replied • Solved
Dynamically create sass variables in rails
Inline styles are not ideal, you could always create a class, and reference it in the `header` in a `style` tag. Then inject the colours into that? ``` ``` then maybe set the colour in the...Alan Reid replied • Solved
After adding the activeadmin gem, my previous style changed, How can avoid this?
yes, solved! Thank you ! After I manually require scss files, no longer use `require_tree` it works fine. ``` *= require_self * require_tree . // not used * *= require addresses.scss ...Larry Qu replied • Solved
How to setup the model associations for a simple e-marketplace?
Cross posting this from Slack: I think your setup looks alright. Any books where the `bought_by` is nil means it’s not been sold. When you do checkout you can charge the user and then assign the...Chris Oliver replied • Solved
How do I create two buttons that generate CSV files with different attributes?
I appreciate the response guys. Yes, I would like each row to have an S auto populated. I'm very new at programming so just bare with me. Would I need to create two def methods with each params...Steve replied • Solved
Why after I switch controller and switch back again , the form submit button Failure？
Yes! Thank you very much!Larry Qu replied • Solved
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
Embed Youtube video in Rails app
@Zanger02, right where it says `` in ``` ``` Which would render something like: ``` ``` This assumes you're passing an `@episode` object that has an attribute named `youtube_id` -...Jacob Montgomery 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