General Ruby on Rails Forum

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

Elastic search & search kick incorporating dates fields and integers

10
General
HI Chris, I implemented elastic search using search kick gem and all went well from search, autocomplete and suggestions when dealing with text. Now i wanna perform a similar search on table th...
Chris Oliver replied
Solved

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

Rspec Test on Multi tanent app with aparment gem

1
General
Hi I'm having a hard time figuring this out. https://gist.github.com/Frank004/8aa4acf20f60a3666a42 Im starting to do test on my Multitenant app and encounter a problem when trying to run the pro...
Chris Oliver replied
Solved

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

Multi tenant with different template (View)

0
General
I've ask this question once but not clear on implementation, i've a multi tenant application using different template (View). Every tenant required to setup and choose template from setup. after th...
Oyewole Samuel posted

How do I set up dynamic routes?

0
General
I asked this question on Stack Overflow: http://stackoverflow.com/questions/35519550/dynamic-routes-rails-4. If anyone has any feedback or an answer to this I'm all ears. I've been hashing through ...
Chris Collinsworth posted

Learning Ruby on Rails? Join our newsletter.

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