Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Can this be done with partial or can I only use whole views


  • Please log in to reply
1 reply to this topic

#1 roelof

roelof

    Passenger

  • Members
  • 4 posts

Posted 05 July 2014 - 06:43 AM

Hello,

 

I want to make a big financial app where the menu structure is like this :

 

leden

-------- new

-------- edit

financieen

-------- veranderen contributiebedragen(edit)

------- nieuwe abbonementen (new)

-------- kasboek

------------ ontvangsten

------------ betalingen

------------ van kas naar bank

-----------  van bank naar kas

-------- bankboek

<the same as kasboek>

-------- memoriaal

uitleningen

------- nieuwe uitleningen

------- terugbrengen

 

that will be a lot of views.

The layout and the menu changes on every choice.

 

Can I use partials or can I better use a full html file for every choice ?

 

Roelof

 



#2 railites

railites

    Passenger

  • Members
  • 4 posts
  • LocationDelhi,India

Posted 18 July 2014 - 12:51 PM

Hello,

 

I want to make a big financial app where the menu structure is like this :

 

leden

-------- new

-------- edit

financieen

-------- veranderen contributiebedragen(edit)

------- nieuwe abbonementen (new)

-------- kasboek

------------ ontvangsten

------------ betalingen

------------ van kas naar bank

-----------  van bank naar kas

-------- bankboek

<the same as kasboek>

-------- memoriaal

uitleningen

------- nieuwe uitleningen

------- terugbrengen

 

that will be a lot of views.

The layout and the menu changes on every choice.

 

Can I use partials or can I better use a full html file for every choice ?

 

Roelof

 

Its always better to divide page into parts, it makes code readable and maintainable. Use partial and use helpers for generating menu.

 

http://pothibo.com/2...e-menu-in-rails






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users