Gonzalo,
See my embedded responses.
Blessings,
Jeff
On 10/9/07, Gonzalo Garramu?o <ggarra at advancedsl.com.ar>
wrote:>
> Sorry to send you this, but I am having problems posting to
rubyforge''s
> mailing list, albeit I am subscribed.
No problem.
I have a project I am now developing with masterview and I run into
a> problem right away.
>
> 1) Basically, the issue I have is that:
>
> script/generate masterview MyModel
>
> generates empty .html files for some models. Funny enough, I can verify
> masterview works, as it generates proper views for one of my models, but
> not the others.
> The database tables are called videos (works), audios and images
(don''t
> work).
>
> Needless to say, using:
>
> script/generate scaffold Audio
>
> works fine.
I''d be glad to take a look if you want to tar/gz up the project and
send to
me so I can see what is going on. Please include the migrations or
schema.rbso I can recreate the db.
2) mv:image_tag or mv:content should support Ruby''s quoting rules (or
if> they do, they need examples in the manual). In my database, I wanted to
> display a picture associated with each image.
>
> Currently, the only way I could make it work was with this:
>
> <td class="td_thumbnail" mv:content="image_tag
''dbimage-'' +
> video.image.id.to_s + ''.png''">image
Thumbnail</td>
You could also write it as so
<td class="td_thumbnail" mv:content="image_tag
%{dbimage-#{video.image.id}.png}">image
Thumbnail</td>
using ruby''s %{} to create a string with substitution enabled
> --
> Gonzalo Garramu?o
>
--
Jeff Barczewski, MasterView core team
Inspired Horizons Ruby on Rails Training and Consultancy
http://inspiredhorizons.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/masterview-users/attachments/20071010/521aeceb/attachment-0001.html