I’m using datamapper to store to a database. immediately after the db is migrated none of the methods exist because there are no values
<input type="text" name="seed" value="<%= @seed.value unless @seed.respond_to(value)? %>"
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not too sure I follow your question, but it looks like this:
Should be this:
respond_to?is the name of the method, so put the question mark in the correct place. Also, you want to pass a Symbol:valuerather than the variable/method callvalueas the argument.Finally, that should be
if, notunless.