Re: [Rails] Yielding scaffold in another view best practice.

2015-10-25 Thread Deepak Sharma
On Sun, Oct 25, 2015 at 9:01 PM, Colin Law wrote: > In fact I didn't write what I meant to write. Put the rendering of > the dashboard partials in layouts/application.html.erb (or another > layout used by relevant views if not everything needs the dashboard) > and yield from there for the content

Re: [Rails] Yielding scaffold in another view best practice.

2015-10-25 Thread Colin Law
On 25 October 2015 at 14:59, Deepak Sharma wrote: > On Sun, Oct 25, 2015 at 7:10 PM, Colin Law wrote: >> The usual way to do this would be by rendering partials. You can >> render different partials dependent on the context. Alternatively, >> instead of rendering the scaffolds as partials from

Re: [Rails] Yielding scaffold in another view best practice.

2015-10-25 Thread Colin Law
On 25 October 2015 at 14:59, Deepak Sharma wrote: > On Sun, Oct 25, 2015 at 7:10 PM, Colin Law wrote: >> The usual way to do this would be by rendering partials. You can >> render different partials dependent on the context. Alternatively, >> instead of rendering the scaffolds as partials from

Re: [Rails] Yielding scaffold in another view best practice.

2015-10-25 Thread Deepak Sharma
On Sun, Oct 25, 2015 at 7:10 PM, Colin Law wrote: > The usual way to do this would be by rendering partials. You can > render different partials dependent on the context. Alternatively, > instead of rendering the scaffolds as partials from the dashboard, > render the dashboard as partials from t

Re: [Rails] Yielding scaffold in another view best practice.

2015-10-25 Thread Colin Law
On 25 October 2015 at 12:59, Deepak Sharma wrote: > In my app I have dashboard part where all major function will perform, > besides that I have few scaffolds (question, performance etc) which I > want to display in that dashboard. I'm little confused what will the > best practice of doing this. >

[Rails] Yielding scaffold in another view best practice.

2015-10-25 Thread Deepak Sharma
In my app I have dashboard part where all major function will perform, besides that I have few scaffolds (question, performance etc) which I want to display in that dashboard. I'm little confused what will the best practice of doing this. 1) Make partial and then render that partial 2) By using co