Ruby on Rails Community Forum

How to raise a warning message from the model

0
General
Hi there, In my rails app I have the parent model ORDERS with SALES as a child (as nested routes). So 1 Order has_many Sales and 1 Sale belongs_to Order. In my USER model I have the column "maxdis...
Sascha M. posted

GoRails Screencast suggestion: Caching

2
Site Feedback
Hi there, just a quick suggestion. I'm at a stage where I'm struggling with Caching. Since you haven't covered this topic yet I would be very happy if you do, especially Database query caching. G...
Sascha M. replied

Display user

3
General
Hi Everyone, I'm trying to display a users profile image, along with their username in an autocomplete dropdown. The autocomplete functionality works fine, I'm just having trouble displaying the ...
Nick McNeany replied

CSV Import: Whitespace (blank) results in an error

3
General
Hi there, I`m using the CSV Upload as described in one of your pro-tutorials. The code loops through the csv and adds records to the specific table. But if there is a whitespace inside a row, th...
Chris Oliver replied

Access rights and roles logic in third model ("has_many through" association)

3
General
Hello, this question is more conceptual, than technical one. Do you think that it's a good idea to handle different types of "access rights" and "roles" in third model like this? ```ruby class Do...
David Becerra replied

Survey - adding options though nested models

1
General
Hey guys, a while ago, I tried to follow a railscast tutorial(notably http://railscasts.com/episodes/197-nested-model-form-part-2?view=asciicast) on nested models where i was trying to build a sur...
David Becerra replied

Using multiple theme in Multi tenancy application

3
General
Great work Chris, this my second month in this forum and i really enjoy the series of tuts, please i'm currently working on multi tenancy application that require user to select desired theme. plea...
Jacob Montgomery replied

how to create in db this hash with Model.create

0
General
```"livraisonlog"=>[{"vente_id"=>"3", "type_liv"=>"L", "produit_id"=>"57", "qte"=>"4.0"}, {"vente_id"=>"3", "type_liv"=>"L", "produit_id"=>"66", "qte"=>"5.0"}, {"vente_id...
sacko idriss posted

USSD APPLICATION

0
General
Hello I am working on a project that is to develop a platform. The platform will aim to monitor and records the payment transaction operations on the mobile network. I remind you that the mobile pa...
sacko idriss posted

Migrate away from Mandrill?

14
Gems / Libraries
You have a screencast where you [describe how to incorporate Mandrill into your Rails application](https://gorails.com/episodes/sending-emails-with-mandrill?autoplay=1), and because of that I've us...
Melanie replied

Access denied for user 'vagrant'@'localhost' (using password: NO)

0
General
I have setup vagrant following the video and all is good but I can't seem to access Mysql. I have tried mysql --user=vagrant -p with no password but I get " Access denied for user 'vagrant'@'local...
Damon Delcoro posted

Automated email notification summary

1
General
Hi, I like to have my application to send automated emails summary to users. Users have multiple profiles that they can make and like to notify the users by email if there is more than 5 new profil...
Chris Oliver replied

INSERT multiple records with accepts_nested_attributes_for

9
General
Hi evry bady. I have three models. I want a form that gives the product list, just added the amount for inclusion in ventelinges. ```produit.rb class Produit < ActiveRecord::Base has_many :v...
sacko idriss replied

deeply nested forms

0
General
Hey Chris i am tinkering with deeply nested forms, all is well but I can manage to render the show with all 3 forms in one ... esp the last form. when its added I get non method error and i am sure...
JM posted

Compare two active record results along just one column

0
General
I have 3 models - `Items`, `Customizations` and `Property Maps` Property Maps has a polymorphic association with Items and Customizations The business logic here is, when listing customizations p...
Michael Victor posted

Category filter implementation (perhaps with search)

0
General
Hi Chris! At the moment I have product and industry models with has_many :through associations, and would like to list the products based on the industries. I'd like to create a category (in my c...
Sean M posted

How do i show a specific book and show all the activity that a uniq user provided with the public_activity gem?

0
General
I'm able to show a stream of activity for each user in their profile. What I'm trying to figure out is how i can have a book show one time with the activity that a specific user provided on the sid...
Wes posted

Creating appointments with calendar integration

0
General
Hi, I'm working on an app for a personal trainer, at the moment I've got a User class with STI for clients and trainers. The way I would like the appointments to work is from the trainers side they...
Daniel Kehoe posted

Implement a hash tags like feature in rails

2
General
Hi , I have looking for an actively supported gem to implement a hash tag like feature that can easily be used as a metric in feedback that has a lot of text. I checked-out https://githu...
JM replied

How can i tell to devise to look at some other views?

0
Gems / Libraries
Hey i have some problem with devise. I already created devise model for User and after that i run command rails g devise:views without user at the and. And now i decided that i must to have couple ...
Stefan Dabizljevic posted

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.