Dashes in RESTful resource

true false 2008-05-22T19:53:59Z 652 Funny Stuff 0.00 13197 2008-05-28T23:49:26Z 232

I have a resource that I am communicating with fine, but I am unable
to process certain elements, particularly elements with dashes in the
name such as “total-time”.

I’m getting an error message of “undefined method `total’ for #…”

here is my pertinent template code:
<%= @details.total-time %>

I’m researching this now but I cant find any past instances of it.

Auston Bunsen wrote:

true false 2008-05-22T19:53:59Z 652 Funny Stuff 0.00 13197 2008-05-28T23:49:26Z 232

I have a resource that I am communicating with fine, but I am unable
to process certain elements, particularly elements with dashes in the
name such as “total-time”.

I’m getting an error message of “undefined method `total’ for #…”

here is my pertinent template code:
<%= @details.total-time %>

I’m researching this now but I cant find any past instances of it.

Try @details.total_time

I believe - gets translated to _ in the XML conversion

This is correct. Thanks!

On May 28, 8:09 pm, Alex W. [email protected]