Jeff Barczewski
2007-Oct-11 18:55 UTC
[Masterview-users] Masterview generator issue with boolean (or time fields)
On 10/9/07, Gonzalo Garramu?o <ggarra at advancedsl.com.ar> wrote:> > > 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.Gonzalo, After looking into the masterview generator issue with your table, it turns out the problem was that we did not implement a generate method for boolean fields which your Audio table had. I also noticed that we didn''t have a method for time fields. So I have added a boolean and time_select generate methods to the generator which fixed the problem. I have checked the code into the trunk. So would you mind installing the latest code from the trunk and test to see if this fixes your problems. You can do this by going to your railsapp directory and executing script/plugin install svn://rubyforge.org/var/svn/masterview/trunk/masterview If this indeed fixes your problem then it will become part of the next release (0.3.5). Let me know if this resolves things for you or causes you any other problems. Thanks, Jeff -- 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/20071011/1e303a54/attachment.html
Gonzalo Garramuno
2007-Oct-11 22:51 UTC
[Masterview-users] Masterview generator issue with boolean (or time fields)
Jeff Barczewski wrote:> > Let me know if this resolves things for you or causes you any other > problems.Seems to work properly now. Small question: I had installed masterview as a gem to get automatic updates. Now that I got it from svn, will gem update still work properly? -- Gonzalo Garramu?o Film Aura A New Dawn in Media Companies gga at filmaura.com http://www.filmaura.com
Gonzalo Garramuno
2007-Oct-11 23:15 UTC
[Masterview-users] Masterview generator issue with boolean (or time fields)
Gonzalo Garramuno wrote:> Seems to work properly now.Maybe I spoke too fast. Do: script/generate masterview Show Then go to the show/new form. The two date fields will show incorrectly tabulated. There may be some </div> being handled wrong in there. -- Gonzalo Garramu?o Film Aura A New Dawn in Media Companies gga at filmaura.com http://www.filmaura.com
Jeff Barczewski
2007-Oct-16 03:11 UTC
[Masterview-users] Masterview generator issue with boolean (or time fields)
Sorry didn''t get back to you sooner, I''ve been traveling and will be getting back home Wednesday, so I''ll take a look then. Jeff On 10/11/07, Gonzalo Garramuno <gga at filmaura.com> wrote:> > Gonzalo Garramuno wrote: > > Seems to work properly now. > Maybe I spoke too fast. Do: > > script/generate masterview Show > > Then go to the show/new form. The two date fields will show incorrectly > tabulated. There may be some </div> being handled wrong in there. > > -- > Gonzalo Garramu?o > > Film Aura > A New Dawn in Media Companies > > gga at filmaura.com > http://www.filmaura.com > > _______________________________________________ > Masterview-users mailing list > Masterview-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/masterview-users >-- 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/20071015/3a601475/attachment.html