Skip to content
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
Closed
Assignees
Labels
Milestone

Comments

@gokaykucuk
Copy link

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
Copy link

ghost commented Nov 28, 2012

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

@DAddYE
Copy link
Member

DAddYE commented Jan 5, 2013

Approved for 1.0

@ghost ghost assigned DAddYE Jan 5, 2013
@gokaykucuk
Copy link
Author

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

@ujifgc
Copy link
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
Copy link
Member

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
Labels
Projects
None yet
Development

No branches or pull requests

4 participants