change :show from view to method

Ticket

change :show from view to method+status
change :show from view to method+priority
change :show from view to method+tag
change :show from view to method+commit
 

change :show from view to method+issues

"show" is currently a view, though it breaks in many contexts as a wagneered view (eg with nested layouts), and it isn't really intended to be overridden in different sets (just formats).  So there doesn't appear to be much value in managing it as a view.

 

 

 

Just curious - what does show do?

--John Abbe.....2013-09-12 21:17:22 +0000

every web request renders the "show" view, which then renders other views. In html format, it looks like this:

 

view :show do |args|

@main_view = args[:view] || args[:home_view]

 

if ajax_call?

view = @main_view || :open

self.render view, args

else

self.render_layout args

end

end

 

 

this ticket is really pretty simple, and would just change

 

view :show do |args

 

to

 

def show( args )

--Ethan McCutchen.....2013-09-12 21:56:29 +0000

in other words, it's the way the controller object talks to the format object.

--Ethan McCutchen.....2013-09-12 21:57:15 +0000