Re: [Rails] eval(hyperlink) question

2014-08-28 Thread Christopher R. Maden
On 08/28/2014 08:14 AM, Dave Castellano wrote: > The hyperlink below is being evaluated to > "questions/www.somewhere.com": > > q = eval(question) # Converts (evaluates) the question string from > the database back into code. > > question =" ... from a light source is equal to the href='www.some

Re: [Rails] How do you create a link to a resource that expires

2012-09-28 Thread Christopher R. Maden
On 09/28/2012 06:21 PM, Matt Martini wrote: > Are there any gems/plug-ins out there for this? How would I go about > creating it from scratch? Not sure about existing gems, not having looked at this in Ruby or Rails, but having solved it in another language: you create an entry in your database w

Re: [Rails] User & Profile w/ Devise

2012-09-25 Thread Christopher R. Maden
On 09/24/2012 01:18 PM, jason baguio wrote: > I am using Devise and am trying to allow each user to create 1 > profile (they can currently make many). I am able to send the the > newly registered user to the page where they can create a profile, > but when the User logs in it will not go to the

Re: [Rails] Koans question : Don't understand the answers

2012-09-18 Thread Christopher R. Maden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2012 01:23 PM, roelof wrote: > But how can I normally know the id of a object ? Meditate on the name of the test. ~Chris - -- Chris Maden, text nerd http://crism.maden.org/ > LIVE FREE: vote for Gary Johnson, Libertarian for President.

Re: [Rails] pg gem error

2012-09-17 Thread Christopher R. Maden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2012 01:29 AM, Saravanan P wrote: > gem install pg give the following error, please help how can i > solve this > > Building native extensions. This could take a while... ERROR: > Error installing pg: ERROR: Failed to build gem native extens

[Rails] Multi-level hierarchy selections

2012-09-01 Thread Christopher R. Maden
I’m not sure what the best subject line for this is... I am trying to understand more about what parts of Rails have access to what information. I have one type (Interest) organized into a self-referential hierarchy. A user can select any leaf node in that hierarchy. This is working fine. I wan