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
cancel actioncable connection for unauthorized users?
Followed the series on action cable notifications and setup the meta tag so that action would not try to connect if the meta tag was present. Here is my code. ``` $(document).on("turbolinks:loa...Matt Taylor posted
Mailboxer: How to attach a file when starting a new conversation
I am using the Mailboxer gem. When creating a new conversation, the message that is created at that point is does not attach the file I am uploading. new.html.haml = form_tag conversations_path...Mehdi Mehrtash posted
How do I add multiple attachments to Mailboxer?
I am using the Mailboxer gem. I have enabled multiple file uploads for the attachment field. What is the best way to set up my controller so it saves all the attachments? Would making a new model c...Mehdi Mehrtash posted
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 to write a conditional in a create action?
Decided to go with Refile instead of Shrine. I found it easier to work with and was able to implement everything I needed in two days, while I was still wrestling with Shrine after two weeks. I pro...Adrian DeGus replied
Cookies vs token for authentication
@chris Thanks for the resources and explanation! I'm using token based authentication on my iOS app which is of course connected to my rails backend (my friend developed the iOS , not me). I sh...Masud Hossain replied
Is Actioncable + Redis compatible with APN's?
I built my chat app using rails actioncable and than was able to make an ios app that pulls the conversation and messages. Everything works fine. My question is, is it possible to set up apple...Masud Hossain posted
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
What are the advantages/disadvantages to using Rails with AngularJS?
It's got its up's and down's. you start to use it and you're like wth??? then you're like oohhhh I like this and then back to wth?? just seems bloated and all over the place for example this is s...Tabish Iqbal replied
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
Polymorphic relationship vs STI vs Class table inheritance with RoR
Also In the first example, I simplifid too much `usage item` entity. It has more than 4 ~ 6 different column from other types of invocie items. (`subscription item`, and `proration`) So it's not...Unknown replied
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
Can someone help explain how to use test_double to mock a gem class in my app?
No worries at all. I happen to be the maintainer for the gem but for this app I don't want or need to perform any operations directly on thermostats. Thanks for the pointer.Bill Snapper replied
Search all models gem
Like Andrew said, Searchkick is perfect for this. Each model gets an index inside ElasticSearch and then searchkick lets you query over those by simply doing this: https://github.com/ankane/searchk...Chris Oliver replied
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
Alright further testing: => # irb(main):002:0> u.email = "[email protected]" => "[email protected]" irb(main):003:0> u.save (0.2ms) begin transaction SQL (0.7ms) UPDATE "user...eminkel replied
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