[Rails] MVC structure in Ruby on Rails

2014-07-24 Thread ankush rathore
Hi, i m new for roby on rails. i m confused, plz anyone can tell me about how to communicate view folder files to controller folder files or communication between view and controller or model... -- You received this message because you are subscribed to the Google Groups

Re: [Rails] MVC structure in Ruby on Rails

2014-07-24 Thread Colin Law
On 24 July 2014 12:50, ankush rathore rathore.ankus...@gmail.com wrote: Hi, i m new for roby on rails. i m confused, plz anyone can tell me about how to communicate view folder files to controller folder files or communication between view and controller or model... I

[Rails] MVC questions with rails

2012-02-02 Thread Miquel Cubel
Hi, I have two doubts about the right way / place to write some code. Question 1: I have a product and in the view I need to show a listbox with all the categories of this product. - Option1: in the controller make "@product_categories =

Re: [Rails] MVC questions with rails

2012-02-02 Thread Colin Law
On 2 February 2012 08:50, Miquel Cubel mcu...@gmail.com wrote: Hi,     I have two doubts about the right way / place to write some code.     Question 1:     I have a product and in the view I need to show a listbox with all the categories of this product.         - Option1: in the

Re: [Rails] MVC questions with rails

2012-02-02 Thread Miquel Cubel
Thanks for the answer El 02/02/2012 10:09, Colin Law escribió: On 2 February 2012 08:50, Miquel Cubelmcu...@gmail.com wrote: Hi, I have two doubts about the right way / place to write some code. Question 1: I have a product and in the view I need to show a listbox with all

Re: [Rails] MVC questions with rails

2012-02-02 Thread Colin Law
On 2 February 2012 15:14, Miquel Cubel mcu...@gmail.com wrote: Thanks for the answer El 02/02/2012 10:09, Colin Law escribió: On 2 February 2012 08:50, Miquel Cubelmcu...@gmail.com  wrote: Hi,     I have two doubts about the right way / place to write some code.     Question 1:     I

[Rails] MVC .... Many views and one controller

2010-01-18 Thread Ralph Shnelvar
What's the right RoR way if a controller needs to display one of many views in, say, an index method? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

Re: [Rails] MVC .... Many views and one controller

2010-01-18 Thread Colin Law
2010/1/18 Ralph Shnelvar li...@ruby-forum.com: What's the right RoR way if a controller needs to display one of many views in, say, an index method? Do you mean you want several different views all of which are 'index' views but arranged differently? If so then one method is to pass parameters

Re: [Rails] MVC .... Many views and one controller

2010-01-18 Thread Curtis Schofield
For each controller in the line, it's defined methods be actions for the implicit render of the view with the names that match def and view, If you write this way, you'll save some typing If you practice everyday, you may find a better way. If you want to write about a Resource, it helps to

[Rails] MVC, best practice for hash that combines objects?

2009-05-13 Thread arcX
Hi, I just wanted to see if I am on the right track, as I am new to MVC. I have a model called Tasks, and another called Entries. Tasks has many entries. Each entry has a time. So I want to total up the time entries so that I have a keyed array of task Ids = duration. In the end, I want to

[Rails] MVC

2009-04-09 Thread mift99
Hi, i am wondering about the MVC pattern, I havent worked with that for a long time and before I break it I would like to ask your advice... if I have a birthday calender visible in nearly every view where would I put the controller? I was thinking about putting the method it into application

[Rails] MVC architecture

2009-01-05 Thread Valentino Lun
Dear all In the MVC architecture framework, the Model is actually communicate with database. In my rails project, there is a model/ssh.rb that is not connect with database. Is it a good practice for this arrangement in my project? Am I violate the rules of MVC architecture? Or is it better to