Rails csv import with associations


9
Rails
On Go Rails do you use any background workers for Stripe processing?
I'm trying to figure out if I should move some of the stripe payment processing and invoice lookups etc.. to background jobs. Any suggestions for a simple membership type site?
Here are a coupl...

1
General
How do i add a ":unique => true" to an already existing reference?
add_reference :table_name, :column_name, unique: true, foreign_key: true
I think ;)

3
Rails
Multiple select for CSV Export
Perfect. Thank you for the hint. I've resolved it like this:
Form:
```
true, :size => 8 %>
```
Controller:
```
params.require(:report).permit(:title, :start, :end, brand: [])
```...

4
Rails
Use .ENV instead of Secrets.yml for keys
Yeah, Heroku's stuff is easy because you can say `heroku config:set AWS_SECRET_KEY=xxxxxxxxxxxxx` and it will set the ENV variable for you, and voila! You've got ENV variables set.
Much easier ...

5
Servers
How do I configure paperclip with capistrano?
Awesome! Yeah, the 12factor gem is useful for Heroku, but if you run your own server you don't want it as it won't write to that file.
Glad you got it working!

8
Servers
[Performance] - Can I Still Refactor This Code?
Got it. I'll give it a try!

5
Rails
How do I create hierarchical data with a model?
Oh wonderful, I haven't heard of that one and by the docs and activity it certainly looks like it's well maintained. I'll have to try it out!

4
General
Is there a better way to simplify this?
You can customize it, but that's the inferred default name.

10
Rails
why .limit not working with find_by
For clarity, you might want to swap your variable names, because `@categories` is actual a single Category, and `@category` is an array of Categories.

7
Rails
How do I avoid having duplicate rows in a has_many :through table?
Thanks Chris!

4
General
Routing question: Pass a 2nd parameter in the URL?
You're making super good progress. And I know right? I started with GW-Basic, VB6, some C++, Java, back in my early days and it wasn't till I found Python that I felt like I could actually be produ...

6
Rails
How would I use cookies in a check_box_tag to maintain state between page requests?
Thanks Chris. Yeah I haven't worked that much with cookies even though they've been around forever. I'm currently working on using the Javascript approach which I think will be perfect for maintain...

3
General