Skip to main content
Mobile App with Devise Facebook OmniAuth
I'm actually working on something similar in iOS with one of my Rails apps and I hand the OAuth token back to the Rails app. There wasn't a need in my case for the `token_authenticatable` gem.
shakycode replied

Import CSV data using RubyZip and Postgresql COP
Wow so it was as simple as the missing newline character?!
Chris Oliver replied

Nested attributes with collection_select not saving
Brent, could you post your schema.rb and your race controller? Maybe it's just me, but I don't really understand why you have so many attributes in the relationship model (EventRace).
Sean M replied
12
General

Pundit for RESTFUL actions on Model fields
Yeah, that's one of the nifty things that you can do with strong_params. It used to be that the allowed params were global, but in some cases you want to have different accepted attributes like this.
Chris Oliver replied Solved
4
Rails

JSON for Rails delegated attributes?
Chris, thanks. That worked great. Here's how I implemented this (which seems like it's working great). @prospect.attributes.each do |attr_name, attr_value| json.set! attr_name, attr_...
Brian Schwartz replied
4
Rails

New Video Ideas
I was watching CodeSchool's "Feature Focus" the other day. This is where Greg and Carlos look at a popular site/app and pick a piece of functionality to focus on and write it themselves. They the...
shakycode posted

Storing Constant Date in Rails
Also, if you don't need this as a global constant you can also do something similar in a helper. But from the sound of it, you'd want a global constant for this use case.
shakycode replied
3
Rails

Error Handling in Ruby 4+
No problem - glad it helped.
Jeff Wilson replied
9
Rails

Multiple Rubies using Rbenv
Right you are sir. Actually there's been talk of shipping bundler with Ruby, although I forget where I saw it. That would be nice though. Having the .ruby-version in your repo also helps when yo...
shakycode replied
5
Ruby

First argument in form cannot contain nil or be empty
Not a problem, glad I could help! Let me know if you need anymore help.
shakycode replied
4
Rails

When to use scoped models?
I'd say any time you're making supporting classes. For example `User::Import` should be a separate class from `User` to provide the functionality we want, but at the same time it's really closely t...
Chris Oliver replied
2
Rails

Any good regex rules for validation?
Thanks to both for the information. I've been looking for some regex tips on validating URLs and some better email validation techniques. :)
shakycode replied

Best way to render a page as a PDF
I've been using Wicked PDF quite a lot in our business applications. The good thing is that you can just use HTML and CSS to generate the PDF and this works perfect to create our invoices. But if y...
John van Arkelen replied

Best way to render a page as a PDF
I have tried several methods including PRAWN to generate PDF's. It seem there must be a better way. What is you recommendation?
Damon Delcoro posted

Displaying an address from a selected location
I'm stumbling over the grouped_options_for_select here. Could you give me a hand in translating this into a regular select? I'm having a dumb blonde moment. `` I also tried a regular selec...
shakycode replied

Is Devise always a good choice?
I jumped on this thread late, but I would highly recommend Devise. As Chris said, it's well tested, very mature, and feature rich. As well if you really want to lock things down you can use the D...
shakycode replied Solved
12
Rails

Dynamic view based on associations
I'd say probably using a jQuery AJAX request. If you use a dropdown, set the value to the region's friendly ID and then write a jQuery callback to listen to the dropdown's change event. Somethin...
Chris Oliver replied
6
Rails

Suggestions for messaging
I've done some research on Pusher but I'm doing my best to keep the 3rd-party API dependencies to a minimum. Although pusher does an excellent job with realtime messaging and events. Then there's...
shakycode replied
3
Rails

Javascript frameworks videos?
Will do. I'm sure we can come up with something great.
shakycode replied

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

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.