Search Results for "best-way-to-create-or-save-a-record-with-associations-as-a-template-3cbb4db5-2a4d-4b55-8f8c-a2e947118dc8"
Best way to create or save a record (with associations) as a template
Daniel, I agree. I did try having separate models for templates and non-templates (and all of the associated records), and it was a terrible approach. As you mentioned, it was a lot of unneces...tquill replied
Best way to create a belongs_to object from a has_many
Can a listing exist without a user? If so then you'll want to add the optional: true to the has_one :user on the listing model then you should be able to create it without any problems.#columns: us...Jacob Montgomery replied • Solved
Liking Posts Discussion
Hey! I really appreciate all these screencasts, happily pro user. For this I'm getting an "undefined method 'likes'" on the user model so i'm a little stuck. Any ideas why?Cheers! :)Juanmnl replied
Idea for TimeClock Need Advice
Ok, I spoke to soon. I thought I had this all wired up and the `complete` scope working. But the `!where` doesn't work any longer. I had to write the scope as such: ```` scope :complete, -&g...shakycode replied
In-App Messages Between Users Discussion
I know how to find and choose good message tones at Phoneringtones.infoRobertK replied
How do I display several posts in related "weeks"
Wow, you can't imagine how much you helped me. Thank you. I think I learned a lot already, because I started to write my own blog as a Rails application, but I have to admit, that it was not a good...Sebastian replied
Realtime Nested Comments: Part 3 Discussion
<%= render comment_with_replies, current_user: current_user %> if current_user.present?Andrew Kelley replied
Using the Trix Editor plus File Upload Attachments Discussion
Thanks for the episode. Trix is easy and works great but is there a way to style the images. I managed to get them to align left or right but cannot get them to float left or right with text aroun...Scott Moore replied
Pull data from another table in a lookup
Sweet, I'll have to play around with it, I love a good editor! :) Did you ever mess with Summernote? http://summernote.org/examples/#hint-for-mention They support mentions out the box it looks ...Jacob Montgomery replied • Solved
Importing datasets. Recommendations?
Oooh Evil Cognos... lol. I'm having to deal with data translation and import so the way I did it was to write a simple rake task using the `CSV` class that imports my data into the appropriate m...shakycode replied
Multitenancy with the Apartment gem Discussion
its possible to use this gem without subdomain. So every tenant will have same domain but inside the logic there is scheme segregation ?soutsur replied
Activity Feed From Scratch Discussion
Hahaha! That is awesome. I loved Digg. I used to watch Diggnation sooo much.Chris Oliver replied
Improving In-App Notifications Discussion
Just the answer I was looking for!Taylor Cooney replied
Create a filterable location based database with Google Maps API?
Ecommerce multi-step checkout with guest accounts
Oh believe me, I've looked into the 3 S's for almost every e-commerce project I've tackled! It seems like I always come to the same outcome though- they provide 50 features when all I need is 6. Th...Mark replied
Recurring events with the ice_cube gem Discussion
This is not a solution and the code is bad, but since the NPM package is outdated as well as the ruby gem, it at least "works" in Rails 7: https://github.com/robault/event_scheduling Uses an updat...Robert Ault replied