New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render inside controller => view called from the controllers folder #922

Closed
gokaykucuk opened this Issue Aug 28, 2012 · 5 comments

Comments

Projects
None yet
4 participants
@gokaykucuk

gokaykucuk commented Aug 28, 2012

I think this is a functionality padrino needs, i couldn't find it inside documentation.
If this is already implemented, documentation should be changed to emphasize it.

In a controller called "admin", i shouldn't forced to call,

render "admin/index"

i think there should be a shortcut like

render "*index"

where * will be replaced by "admin/" if i am calling the render within "admin" controller.

If i am not the only one who want a functionality like this, i am going to write a patch for it.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Nov 28, 2012

Would be a really nice feature! I am also willing to work that one out together...

ghost commented Nov 28, 2012

Would be a really nice feature! I am also willing to work that one out together...

@DAddYE

This comment has been minimized.

Show comment
Hide comment
@DAddYE

DAddYE Jan 5, 2013

Member

Approved for 1.0

Member

DAddYE commented Jan 5, 2013

Approved for 1.0

@ghost ghost assigned DAddYE Jan 5, 2013

@gokaykucuk

This comment has been minimized.

Show comment
Hide comment
@gokaykucuk

gokaykucuk Jan 5, 2013

Rendering.rb line 257
"view_path = options.delete(:views) || settings.views || "./views""
is this the only area that should be changed?

gokaykucuk commented Jan 5, 2013

Rendering.rb line 257
"view_path = options.delete(:views) || settings.views || "./views""
is this the only area that should be changed?

@ujifgc

This comment has been minimized.

Show comment
Hide comment
@ujifgc

ujifgc Jan 12, 2013

Member

@gkaykck Change it, then write a test case for it and run rake test. If nothing breaks, then you are good.

Member

ujifgc commented Jan 12, 2013

@gkaykck Change it, then write a test case for it and run rake test. If nothing breaks, then you are good.

@nesquena

This comment has been minimized.

Show comment
Hide comment
@nesquena

nesquena Oct 17, 2013

Member

Unless anyone is planning to work on this imminently I am moving to 0.12.1 milestone

Member

nesquena commented Oct 17, 2013

Unless anyone is planning to work on this imminently I am moving to 0.12.1 milestone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment