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
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
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
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
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
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
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
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
How to create a dynamic form for Contest/Giveaway app
I will use your gem Juin Jiang, it's exactly what i needFernando Contreras replied
Dynamic Active Record Associations?
Yeah, you could just create one to remove the table. It'll keep things cleaner.Chris Oliver replied
Hosting static images in subdirectories of Public on nginx
I had a similar problem in the past with www-data and permissions on static assets out of the app's public folder. I did what Chris did and changed my Nginx user to deploy to alleviate the issue. ...shakycode replied
Build REST API with Devise
I think you can just simply make a POST to the same url as the sign up form normally which is `/users`. Same with PUT and DELETE but for logging in and out, you want to POST and DELETE to `/session...Chris Oliver replied
Radio buttons as actual buttons
Yes definitely would if you're using something that doesn't have it built-in.Chris Oliver replied