Re: [Rails] Use table elements

2014-05-26 Thread Walter Lee Davis
On May 26, 2014, at 4:28 AM, Fab Forestier wrote: Colin Law wrote in post #1146856: On 23 May 2014 07:41, Fab Forestier li...@ruby-forum.com wrote: id_op2 name_op2num_op2button Be careful operation is not a model in this view but a variable. I don't know how to assign

Re: [Rails] Use table elements

2014-05-26 Thread Scott Ribe
On May 26, 2014, at 8:00 AM, Fab Forestier li...@ruby-forum.com wrote: But the in the methode ajouter how can I have something like @myvariable=n or @myvariable=@defautrec[i] where I is the current line of the table? %= link_to controller: pages, action: ajouter, id: n % But your code is

Re: [Rails] Use table elements

2014-05-26 Thread Scott Ribe
On May 26, 2014, at 9:09 AM, Fab Forestier li...@ruby-forum.com wrote: And then how can use the id in my methode? Like any other parameter. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed

Re: [Rails] Use table elements

2014-05-23 Thread Scott Ribe
On May 23, 2014, at 12:41 AM, Fab Forestier li...@ruby-forum.com wrote: Be careful operation is not a model in this view but a variable. I don't know how to assign my variable in fonction of the button line? %= @operation.id % You use @operations.each, just like any other variable. It

[Rails] Use table elements

2014-05-22 Thread Fab Forestier
Sorry th etitle of the topic isn't very clear but it's difficult to summarize my problem! I made a view without model but I display in table the content of a variable named '@operations'. So each line corresponds to an operation. In my table I have also a column with a button for each line. When

Re: [Rails] Use table elements

2014-05-22 Thread Colin Law
On 22 May 2014 13:32, Fab Forestier li...@ruby-forum.com wrote: Sorry th etitle of the topic isn't very clear but it's difficult to summarize my problem! I made a view without model but I display in table the content of a variable named '@operations'. So each line corresponds to an operation.

Re: [Rails] Use table elements

2014-05-22 Thread Rob Biedenharn
On 2014-May-22, at 15:39 , Colin Law clan...@gmail.com wrote: On 22 May 2014 18:17, Fab Forestier li...@ruby-forum.com wrote: Colin Law wrote in post #1146811: On 22 May 2014 16:00, Fab Forestier li...@ruby-forum.com wrote: You said that, for example, the link should take you to the edit