Mark Spowage | 16 Dec 16:00
Picon

trying the demo

following along with the demo steps , when starting the server
, as indicated below, the server fails to start.

? is there any other demo to try, a complete download demo would be nice
? is Masterview working for anyone ?

thx

MasterView using REXML Sax2Parser version = 3.1.7.2
Using default admin_auth mixin for MasterView admin (local requests only)
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:445:in
`load_missing_constant': uninitialized constant Dependencies
(NameError)
	from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in
`const_missing'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in
`const_missing'
	from /usr/lib/ruby/gems/1.8/gems/masterview-0.3.4/lib/masterview/extras/init_mv_admin_pages.rb:90
	from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
	from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in
`require'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in
`require'
	 ... 35 levels...
	from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49
	from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
(Continue reading)

Jeff Barczewski | 27 Feb 17:38
Picon
Gravatar

Re: Masterview

On Wed, Feb 27, 2008 at 6:07 AM, Stephen Devonald <devonalds-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:

Hi Jeff

I'm new to Rails, but a long time developer going back into IT dark ages, with a lot of experience in both using and creating frameworks.

I was looking for a Rails compatible html editor, and found your site and presentation. Masterview looks excellent, clearly addresses the big hole in Rails; but as a new boy I've started with Rails 2.0.2 and don't want to relearn what I've had to learn and unlearn already using all the non 2.0.x compliant tutorials!

(Incidentally, I cannot, as project manager, analyst, or coder, understand the apparent lack of interest from Rails coders in this area - it is so clearly vital to agile development and user buyin).

Can't find any dates for Masterview release for Rails 2.0.x on web - can you point me to any info on this?

Great work!


Thanks Stephen! I feel your pain.

We haven't done any new releases since Rails 2.0 came out, but at this point I don't know that anything is incompatible with the old release. A couple people mentioned that they were wanting to use Rails 2 with MasterView and I basically said if you run into any incompatibilities, let me know and I can usually turn around a fix pretty quick.

I haven't had a chance to check with Rails 2 myself yet, but it is on my todo list.

There is one setting that makes MasterView very compatible with Rails and other plugins, config.generate_rhtml_files = true which causes the rhtml files to be written to the hard drive. This allows Rails to function like it always does and requires no magic from MasterView once the files exist. In fact you can even deploy to production without MasterView plugin at all once you have the rhtml files.

If you set that to true, another thing you might want to do if having both the .html and .rhtml in same directory is a problem, is to change the location of the masterview templates to maybe app/masterview using config.template_src_dir_path = "app/masterview"  This just keeps things separately and less confusing.

So give it a whirl and if you have any problems, please send me an email about the issue and I'll resolve it.

Otherwise, I am planning to check Rails 2 compatibility soon, maybe by this weekend. I also have a bunch of other ideas for the next major version (so the project is alive and well) that I am thinking through currently.

Have a blessed day!

Jeff


--
Jeff Barczewski, MasterView core team
Inspired Horizons Ruby on Rails Training and Consultancy
http://inspiredhorizons.com/
gauda | 21 Feb 16:08
Picon

theme support?

hi all!

i like to know if its possible to use masterview with different themes
per user. the idea is to use one theme per shop like www.shopify.com
i would like to use masterview in combination with theme_support.
http://mattmccray.com/svn/rails/plugins/theme_support/README

can masterview handle this? if that is not possible, would it be hard
to implement such a feature?

i think the point are these configuration options. is it possible to
change template_src_dir_path and template_src_dir_abs_path at runtime
for example as a before_filter?
settings.rb:
config.template_src_dir_path = 'app/views'
config.template_src_dir_abs_path( '/path/to/masterview/templates' )

--

-- 
so long,
gauda
Jeff Barczewski | 7 Jan 16:49
Picon
Gravatar

Re: So what's the timetable for Rails 2.0 compatible Masterview?

From: Lea Viljanen <lea.viljanen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

To: masterview-users-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Date: Mon, 07 Jan 2008 15:07:51 +0200
Subject: Masterview and Rails 2.0?
So what's the timetable for Rails 2.0 compatible Masterview?

I'm running the 0.3.4 gem and I'm hitting some API issues caused by the
switch to 2.0 (for example render_text has been changed in 2.0). I could
go and fix things by hand, but a supported version would be very nice.

Thanks,
--
Lea 'LadyBug' Viljanen
Lea.Viljanen-X3B1VOXEql0@public.gmane.org



Lea,

If you would send us any Rails 2.0 changes you find, then we'd be glad to get them in there.

Even better, if you want to make the changes to the code and send us diff's along with a short explanation of each change, we can apply things even quicker. Ideally with test updates too, but we'll take whatever we can get :-)

Either way is fine. Identifying what needs to be changed is half the effort, so once that is done, we can proceed with updating.

Thanks,

Jeff


--
Jeff Barczewski, MasterView core team
Inspired Horizons Ruby on Rails Training and Consultancy
http://inspiredhorizons.com/
Lea Viljanen | 7 Jan 14:07
Picon

Masterview and Rails 2.0?

So what's the timetable for Rails 2.0 compatible Masterview?

I'm running the 0.3.4 gem and I'm hitting some API issues caused by the 
switch to 2.0 (for example render_text has been changed in 2.0). I could 
go and fix things by hand, but a supported version would be very nice.

Thanks,
--

-- 
Lea 'LadyBug' Viljanen
Lea.Viljanen@...
Nico Ritsche | 24 Dec 09:52

conditionally hiding a tag and form_remote with parameter

Hi,

I'm trying to conditionally hide a div tag. The only way I could get it working
is like this:

<div mv:if="! <at> open_tasks.empty?">
               
    some html

</div>

<div style='display:none' mv:else="">

    same html

</div>

However, I don't like it, as I have to repeat the same html twice. Is there a
better way of doing it?

Another thing: Can I create a form_remote_tag with a parameter using
mv:form_remote? So far I only made it working using form_remote_tag
directly like this:

     {{{ form_remote_tag :html => { :id => 'order_form_open'  } do}}}

But I obviously like to avoid this as it shows up on the page.

Kind Regards,
Nico

Patrick J. Kattau | 4 Nov 22:55
Picon

Using multiple models with masterview

Hi, I'm fairly new to rails and masterview. I'm sure this answer was probably staring me in the face already but all screencasts of masterview that I have seen to date only deal with one table and one model. What about using multiple tables and models? I was trying to add another link under 'tasks' that pointed to a different controller and action but it didn't seem to work. Any guidance would be appreciated.

Regards,
Patrick

Nico Ritsche | 1 Nov 20:19

conditional styling of html elements

Hi Deb and Jeff,
 
thanks for your kind answers!
 
The nicer response is that you need to let go of that attachment to
your source formatting.  (As did I, in fact).
 
;-) Well, maybe you are right...
 
 It has to be functionally correct
and it's nice if it's at least reasonably readable, since in practice
we *do* end up looking at generated page source at various points in
web page development (View Source!),
 
Not only there, but also the formatting of my static html files generated by masterview
when importing layouts and partials gets changed.
 
Anyway, my next "wish" would be to have a possibility to let masterview
generate html files considering the current database content.
This would be very useful, as it comes closer to true wysiwyg editing of 
your page and less dummies would be needed. So tables would be filled
with the actual table data instead of dummies. Would that be difficult to
implement? Or is it possible to extend mv with this functionality?
 
Another thing that would be very useful for me to have is a way of using
my own layout with mv scaffolding. Ideally I'd like to be able to do
something like the following:
  • Create my layout, including navigation etc.
  • Define a standard way crud views and partials are generated from models
  • Using this standard for any further model to quickly setup new model views, like this:

...mv:import="layouts/mylayout.rhtml"...

   ...mv:content=" <at> content_for_layout"...

       mv:generate_crud=" :model => 'myModel', :layout => 'myLayout.html', :crudLayout => 'myCrudLayout' "

This would then generate the list view of the model in place, separate files for new, edit,
view and delete, using my custom templates and the corresponding actions. That, would be great!
Right now I'm manually typing in the code for all the different models I have, copy and pasting
pieces from the mv scaffolds and adjusting them to my needs, which is quite tedious and not all too dry.
What I have in mind is a kind of a finer grained custom scaffolding. There could be also
 defaults/naming conventions for the locations of  the custom made layouta and crud styles. 
There could be also parameters to select which crud actions and views should be generated and
which shouldn't. Also it would be great if the controller could be specified if not the default is used.
Well, the possibilities seem endless... ;-)
 
Does this idea make sense? Is it possible to extend mv like this? I haven't looked much into the
developers section yet.
 
Nico
 
P.S.: How can I post to a thread instead of making a new one? Do I simply need to use the same subject
text? I try...
 

 

 


 
 
 
Nico Ritsche | 27 Oct 00:41

conditional styling of html elements whithout element duplication

Hi,
 
first of all I think MasterView is a very useful tool. Good work!
 
I'm struggling to get the following working: I have a menu consisting
of several links. Dependent on the current controller action, the according
menu link should be styled differently than the other links.
My current solution is to do this for each menu option:
 
<li><a mv:if=" <at> current_page == 'home'" href="home.html" mv:link_to=":action => 'index'"><strong class="selected">Home</strong></a>
<a mv:else="" href="home.html" mv:link_to=":action => 'index'">Home</a></li>
..
..
 
However, this doesn't work very nicely, as the static html shows each menu option twice.
Also it seems a bit awkward. Another idea I had is to use something like this:
 
<li mv:attr=":class => #{ if <at> selected == 'home' 'selected' else 'not_selected' end }"> <a href="new.html" mv:link_to=":action => 'index'">Home</a></li>
 
This doesn't compile as the erb #{ if <at> selected == 'home' 'selected' else 'not_selected' end } isn't correct,
I could use erb directly I guess, like this
{{{ if <at> selected == 'home' }}}<li class="selected" >...</li>{{{ else }}}<li class="not-selected" >...</li> {{{ end }}}
But than I have the double links again.
 
Is there a good way of achieving what I want? Conditional styling of page elements while keeping only one alternative in the static html
seems quite an essential thing to me. Anyway, I'm new to rails and MasterView, so I might have overlooked some more obvious solution.
 
Nico
 
 
 
 
_______________________________________________
Masterview-users mailing list
Masterview-users@...
http://rubyforge.org/mailman/listinfo/masterview-users
Nico Ritsche | 27 Oct 00:45

conditional styling of html elements whithout element duplication

Hi,
 
first of all I think MasterView is a very useful tool. Good work!
 
I'm struggling to get the following working: I have a menu consisting
of several links. Dependent on the current controller action, the according
menu link should be styled differently than the other links.
My current solution is to do this for each menu option:
 
<li><a mv:if=" <at> current_page == 'home'" href="home.html" mv:link_to=":action => 'index'"><strong class="selected">Home</strong></a>
<a mv:else="" href="home.html" mv:link_to=":action => 'index'">Home</a></li>
..
..
 
However, this doesn't work very nicely, as the static html shows each menu option twice.
Also it seems a bit awkward. Another idea I had is to use something like this:
 
<li mv:attr=":class => #{ if <at> selected == 'home' 'selected' else 'not_selected' end }"> <a href="new.html" mv:link_to=":action => 'index'">Home</a></li>
 
This doesn't compile as the erb #{ if <at> selected == 'home' 'selected' else 'not_selected' end } isn't correct,
I could use erb directly I guess, like this
{{{ if <at> selected == 'home' }}}<li class="selected" >...</li>{{{ else }}}<li class="not-selected" >...</li> {{{ end }}}
But than I have the double links again.
 
Is there a good way of achieving what I want? Conditional styling of page elements while keeping only one alternative in the static html
seems quite an essential thing to me. Anyway, I'm new to rails and MasterView, so I might have overlooked some more obvious solution.
 
Nico
_______________________________________________
Masterview-users mailing list
Masterview-users@...
http://rubyforge.org/mailman/listinfo/masterview-users
mortee | 26 Oct 18:34
Picon

Re: using mv stand-alone

Deb Lewis wrote:
> Mortee - I'm probably going to be experimenting with this sort of thing 
> over the next week or two, I'll see what I can pull together to help 
> explain this scenario and provide some examples.  

I'm just posting to have this group appear in gmane at last (:

While at it: any progress worth mention with this issue?

regards
mortee

Gmane