In your first example, is the show action ever called with an id for an
order that doesn't exist? Normally show would never be called with an
invalid id. You say "If you think about it, it'll run the first set of
code when I create a
new object, " but that doesn't make sense to me. It won't run either
set because when you create an object you do it in the create action,
not the show action.
You need to explain more about what your process is here: i don't mean
post tons of code up but explain the sequence of events.
In your second example, what's the actual problem? I would look in your
log to see what params[:logfile] is and then step through your code and
see what it's doing.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment