Ruby on Rails Community Forum
How do i collect the users emails into mandrill ?
2
Gems / Libraries
I have watched the mandrill tutorial. I just have a quick question. How can i link the list on mandrill or any email service with the users emails (when the user signs up ) and update the list wh...
Ahmed Althani replied
I need help setting up Acts_as_Follower Gem
1
General
The documentation for this gem is very shotty, and I can barely understand If you can help me setup the methods for the controller, views, toggle on and off follow button, and blocking users. That...
Chris Oliver replied
Pre-populate association for nested form
2
General
Hi so here is what i have :
class Attendance < ActiveRecord::Base
belongs_to :attendance_sheet
belongs_to :user
end
class AttendanceSheet < ActiveRecord::Base
...
JM replied
Issues with JQuery AtWho
5
Javascript
Hello, I enjoyed your screencast on implementing the @ functionality for user interactions. What I'm trying to figure out is how to handle the index.json.jbuilder when using devise
jQuery ->
...
Lee Terng Gio replied
Simple Form - Make label appear after input
2
Gems / Libraries
I have a simple form tag as given below:
= f.input :email, required: true, input_html: {class: 'md-input'}, wrapper_html: {class: 'md-form-group float-lable'}
and it generates the below HTML
...
Michael Victor replied
Performing calculations using scopes
10
General
hello , hopefully this isn’t too ambitious but i am hoping there is a way to do simple summation using defined scopes example is i have these scopes :
scope :present, -> { where(prese...
Chris Oliver replied
Basics commands for using MacVim
1
General
Hey Chris,
Your videos are awesome. I think it would nice to have some of the basic commands for using MacVim while coding.
Chris Oliver replied
Advanced Ransack Usage
0
General
Hi all,
I've got the following question on StackOverflow: http://stackoverflow.com/questions/34259808/custom-ransacker-on-dynamically-generated-association
Wondering if anyone here might have any...
Bryce Roney posted
undefined method `map' for nil:NilClass on select_collection
4
General
Hi,
I have been struggling with this error for the last 3 hours and its s bit frustrating: Here is the scenario
I am trying to populate a select box with Team names that belong to a specific te...
JM replied
Add Download Button to csv-export
2
General
Hi,
I did everything (and it's working!) regarding this episode:
https://gorails.com/episodes/export-to-csv?autoplay=1
How can I add a download-button in my views for that?
Thank you guys!
Sascha M. replied
validate presence of specific domain in email
5
General
Hi there, is a way via regex to validate an email and make sure it belongs to a specific domain, I found the below regex on SO and it doesnt seem to do the job.
validates :email, format: { wi...
JM replied
Rails Paperclip Gem - save parent model ID to path
0
General
I created a question on StackOverflow - but it hasn't gotten any attention as of yet, so I thought I'd share it here.
If you have any suggestions at all, feel free to share!
http://stackoverflow....
Terence Devine posted
Adding a Admin Interface to devise
0
Gems / Libraries
Hi there,
first of all: I'm pretty new to Rails, so please don't blame me if I ask a stupid question :)
I use devise + cancancan for authentication and authorization. The user model is already ge...
Sascha M. posted
Grabbing all the has_many relations of a specific collection
1
General
I've got:
```ruby
class User < ActiveRecord::Base
has_many :photos
end
class Photo < ActiveRecord::Base
belongs_to :user
end
```
Each user has a "shadowbanned" attribute (t/f). I'd lik...
Chris Zempel replied
Saving _form along with has_many through items
0
General
Hi Chris,
I'm having difficulty wrapping my head around how to save a form (`Kit`) that includes optional items for a `has_many through` relationship (`AmazonProductKit`). Here are my models:
``...
Michael Stitt posted
custom method in class to perfom simple calculation
4
General
Hi Chris,
Checkout mt simple scenario below: I am trying to get the total count of all absent and present person from an attendance sheet here are my models.
class AttendanceSheet < Acti...
shakycode replied
What else would you add to the Stripe Subscriptions app to 'complete' it?
3
General
Hi Chris,
I was wondering what else you would need to include to ensure all situations are addressed to complete the Stripe Subscriptions application? For example, I'm assuming webhooks for when a...
Chris Oliver replied
in app notification
4
General
Hi Chris do you have an example of in app notification like the one you use here. Basically you comment on a question I asked then I see it in the badge in the nav bar. Could you please show us a c...
Chris Collinsworth replied
Nested forms with rows like a table
5
General
Hi Chris,
I am battling nested forms , but not your standard .. what I want is a situation where the form behaves like a table where each new row will represent the object from the partial(nested...
JM replied
How do I make comments show the user who created it?
4
General
I would think that i could do something like the code below but it's not working. How can i approach this so it can show the user who created the comment and other information about the user? I ...
Wes replied