Re: [Rails] Need guidance on an inline editing design

2018-08-14 Thread John Sanderbeck
Thank you everyone for the help... After I stepped back and looked at this again it was simple... Your guidance did help though... John On Tuesday, August 7, 2018 at 6:32:07 AM UTC-4, John Sanderbeck wrote: > > Got it but I think I want to do it with Ajax instead... :-) > > One Click = 1

Re: [Rails] Need guidance on an inline editing design

2018-08-07 Thread John Sanderbeck
Got it but I think I want to do it with Ajax instead... :-) One Click = 1 update Would be cleaner for the teachers... John -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails

Re: [Rails] Need guidance on an inline editing design

2018-08-04 Thread John Sanderbeck
Ok, I'm close on the form... Just can't figure out how to pass back a hash or array that I can use to write the records... This is what I have in my form... Basically I autocreate an attendance record each morning for all students with a :attendance_status of nil... This list shows each

Re: [Rails] Need guidance on an inline editing design

2018-08-02 Thread Joe Guerra
ok great. I've started a little project. Very easy took me about 1/2 hr so far. It's an online quiz app, great for schools (or testing one's knowledge). https://github.com/merlin2049er/onlinequiz basically, it's a multiple choice database, add questions, and it retrieves the questions in

Re: [Rails] Need guidance on an inline editing design

2018-08-02 Thread John Sanderbeck
It's part of a larger project so let me see if I can split the attendance portion out... We use BitBucket because we are cheap... :-) John On Thursday, August 2, 2018 at 10:06:23 AM UTC-4, Joe Guerra wrote: > > Have you put your code up on github? > > I can give you a hand, I'm also

Re: [Rails] Need guidance on an inline editing design

2018-08-02 Thread Joe Guerra
Have you put your code up on github? I can give you a hand, I'm also learning rails, and run out of ideas / projects to work on. On Thursday, August 2, 2018 at 6:38:39 AM UTC-4, John Sanderbeck wrote: > > Sorry... Only been doing RoR code for about a year... Still learning... > > John >

Re: [Rails] Need guidance on an inline editing design

2018-08-02 Thread John Sanderbeck
Sorry... Only been doing RoR code for about a year... Still learning... John On Wednesday, August 1, 2018 at 1:23:45 PM UTC-4, Hassan Schroeder wrote: > > On Wed, Aug 1, 2018 at 9:06 AM, John Sanderbeck > wrote: > > > How do I define a set of radio buttons unique to each student > > You'll

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread Hassan Schroeder
On Wed, Aug 1, 2018 at 9:06 AM, John Sanderbeck wrote: > How do I define a set of radio buttons unique to each student You'll need to include an identifier with each set of button names (student id or something). > with a set of options from an AttendanceStatus table? If they're unlikely to

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread John Sanderbeck
She may be editing... Ok, Taking the suggestions from above I think I have the form figured out but where I am having an issue is with the radio buttons... How do I define a set of radio buttons unique to each student with a set of options from an AttendanceStatus table? I would also like

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread Hassan Schroeder
On Wed, Aug 1, 2018 at 7:16 AM, John Sanderbeck wrote: > It will typically be a single class however the main secretary may go in to > check attendance and she will see the entire school. Is the "main secretary" *viewing* or *editing* the data? If it's only viewing you can consider that a

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread Joe Guerra
or you can put a drop-down list with the attendance options in the list. On Wed, Aug 1, 2018 at 10:24 AM, Joe Guerra wrote: > Doesn't seem like a very hard app to put together. > > Why not just load all the students at once (if they are about 50 of them) > (or you can say paginate them at 20

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread Joe Guerra
Doesn't seem like a very hard app to put together. Why not just load all the students at once (if they are about 50 of them) (or you can say paginate them at 20 records). I would use radio buttons, instead of check boxes. On Wed, Aug 1, 2018 at 10:18 AM, John Sanderbeck wrote: > And if not,

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread John Sanderbeck
And if not, could I have a filter? We use Filterrific in most of the application... John On Wednesday, August 1, 2018 at 10:16:19 AM UTC-4, John Sanderbeck wrote: > > It will typically be a single class however the main secretary may go in > to check attendance and she will see the entire

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread John Sanderbeck
It will typically be a single class however the main secretary may go in to check attendance and she will see the entire school. This won't hurt me as we only have 125 kids, but a larger school could have an issue... Would Pagination still work in this scenario? John On Wednesday, August 1,

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread Ralph Shnelvar
Title: Re: [Rails] Need guidance on an inline editing design John, This is an add-on to David Merrick's answer. Since this is for a school class, it's unlikely to have more than, say, 50 students. Your database query could bring in up to 50 students and then you could build a view

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread John Sanderbeck
Is there a way I could do all students at once? John On Wednesday, August 1, 2018 at 3:35:06 AM UTC-4, David Merrick wrote: > > Hi The database would supply the students details. > > The form would consist of the > > ist row Student details checkbox for each Present, Absent, Half-Day >

Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread David Merrick
Hi The database would supply the students details. The form would consist of the ist row Student details checkbox for each Present, Absent, Half-Day District, Half-Day CTC, Full-Day District. 2nd row Submit button Once the submit button is clicked those details would entered into the database

[Rails] Need guidance on an inline editing design

2018-07-31 Thread John Sanderbeck
What I am trying to do is in my application is add Student Attendance for the day. What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the