[Rails] Re: Use table elements

2014-05-23 Thread Fab Forestier
Yes you're both right. My problem is not to redirect or to render and not to config routes. My problem is the assignment of the variable @operation, how can I assign the operation which correspond to the right button? Operations --

Re: [Rails] Rails create login page

2014-05-23 Thread Duong vong veasna
Dear Mr. Colin I have completed create log_in page. After log_in successfully i want to link to my page that i have create it in user folder. so could you show me how to do. thanks. veasna On Thursday, May 22, 2014 2:24:50 AM UTC-7, Colin Law wrote: On 22 May 2014 09:40, Duong vong veasna

Re: [Rails] Re: Use table elements

2014-05-23 Thread Colin Law
On 23 May 2014 07:41, Fab Forestier li...@ruby-forum.com wrote: Yes you're both right. My problem is not to redirect or to render and not to config routes. My problem is the assignment of the variable @operation, how can I assign the operation which correspond to the right button?

Re: [Rails] Rails create login page

2014-05-23 Thread Colin Law
On 23 May 2014 07:57, Duong vong veasna veasnakhme...@gmail.com wrote: Dear Mr. Colin I have completed create log_in page. After log_in successfully i want to link to my page that i have create it in user folder. so could you show me how to do. thanks. Have you worked right through the

Re: [Rails] Rails create login page

2014-05-23 Thread Duong vong veasna
Yes, it work when i register then i'm log_in when success it redirect to sign_up page, so i want when log_in success redirect to my page. i use this command redirect_to root_url('users/home'), :notice = Logged In! it not run my home page. could you tell me why? thanks you. veasna On Friday,

Re: [Rails] Rails create login page

2014-05-23 Thread Colin Law
On 23 May 2014 10:07, Duong vong veasna veasnakhme...@gmail.com wrote: Yes, it work when i register then i'm log_in when success it redirect to sign_up page, so i want when log_in success redirect to my page. i use this command redirect_to root_url('users/home'), :notice = Logged In! it not

[Rails] link_to with array parameter for URL : What does it mean?

2014-05-23 Thread Ronald Fischer
(Crossposting Note: This topic has been posted already at https://railsforum.com/topic/1933-link-to-with-array-parameter-for-url-what-does-it-mean , but did not get a reply so far) I found in http://guides.rubyon...-a-partial-form the following example: link_to 'Destroy Comment',

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

Re: [Rails] videojs and rails

2014-05-23 Thread Walter Lee Davis
On May 22, 2014, at 10:39 PM, Pierre-Andre M. wrote: I am trying to get videojs to play a local video file within rails. I am using the video.js library I have tried 2 different gems (github: seanbehan/videojs and alexesDev/videojs) I have tried in line javascript I have tried precompiling

Re: [Rails] link_to with array parameter for URL : What does it mean?

2014-05-23 Thread Walter Lee Davis
On May 23, 2014, at 5:35 AM, Ronald Fischer wrote: (Crossposting Note: This topic has been posted already at https://railsforum.com/topic/1933-link-to-with-array-parameter-for-url-what-does-it-mean , but did not get a reply so far) I found in http://guides.rubyon...-a-partial-form the

[Rails] Beginner's routing question: Redirecting to a different controller

2014-05-23 Thread Ronald Fischer
I have a problem passing control from one controller to the next. Here are the details: I have a model 'Dict' with primary key :dictname. I have two controllers, named 'Login' and 'Dict'. The application starts in views/login/index.html.erb, where I have - among other stuff - an entry field for

Re: [Rails] Beginner's routing question: Redirecting to a different controller

2014-05-23 Thread Scott Ribe
On May 23, 2014, at 7:04 AM, Ronald Fischer li...@ruby-forum.com wrote: into routes.rb, because - for the time being - I don't need yet the full set of CRUD capabilities on a Dict, so I thought I'll just start with the minimum needed, and extend over the time as necessary. If you think that

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-23 Thread Евгений Шурмин
get 'dict/:id/manage', to: 'dict#manage' , as: :dict пятница, 23 мая 2014 г., 17:05:36 UTC+4 пользователь Ruby-Forum.com User написал: I have a problem passing control from one controller to the next. Here are the details: I have a model 'Dict' with primary key :dictname. I have two

Re: [Rails] Beginner's routing question: Redirecting to a different controller

2014-05-23 Thread mike2r
On Friday, May 23, 2014 9:09:20 AM UTC-4, Scott Ribe wrote: On May 23, 2014, at 7:04 AM, Ronald Fischer li...@ruby-forum.comjavascript: wrote: into routes.rb, because - for the time being - I don't need yet the full set of CRUD capabilities on a Dict, so I thought I'll just start

[Rails] Re: videojs and rails

2014-05-23 Thread Pierre-Andre M.
Thanks so much for that feedback. The ONLY reason why I needed to use videojs is so that I can start and end at a specific time within a video. Does the built in rails paradigm have this option? example code: var endtime = 10505.89+10; myPlayer=

Re: [Rails] videojs and rails

2014-05-23 Thread Walter Lee Davis
Anything like that is going to happen in JavaScript, and while Rails has JS helpers all over the place, there's nothing in there that is specific to VideoJS. You should be able to add this script to your page after you get the video to play at all. Just pop it in a script tag underneath the

[Rails] Firefox select menu truncation - Rails or JQuery issue?

2014-05-23 Thread gvim
I have a Rails 4.1 app which has a Region select menu generated from a partial and which displays fine. Based on which option is selected from this menu I have a JQuery script which takes data from a locations var/object and constructs a secondary Location select menu. Everything works fine in

Re: [Rails] Beginner's routing question: Redirecting to a different controller

2014-05-23 Thread Scott Ribe
On May 23, 2014, at 8:03 AM, mike2r mr...@kalanitech.com wrote: I agree with everything Scott says in his post. This is a small point, but I don't like having routes defined that aren't really used. It's a small point, because my solution is also going to lead to a different error, but I

Re: [Rails] To create a Ruby on Rails app, does back-end need to occur before front-end?

2014-05-23 Thread BuyzLots
I've handled projects both ways, If your Front end developer is not familiar with rails then I would have them create interactive mocks (all the interactions, etc but with static html) It's very easy for a developer to copy over the front end code and make the modifications so that it works

[Rails] Re: OAuth2 client credentials grant error UnsupportedAuthorizationScheme

2014-05-23 Thread Matt Jones
On Thursday, 22 May 2014 04:19:54 UTC-4, Usha wrote: Dear ALL, Anyone have come accross the following error, your comments would be of great help, plz suggest on this,OAuth2::Error ({ErrorCode: UnsupportedAuthorizationScheme,ErrorMessage:Only 'Bearer' scheme is supported for

[Rails] Re: To create a Ruby on Rails app, does back-end need to occur before front-end?

2014-05-23 Thread Jordan Clarke
Hassan Schroeder wrote in post #1146832: On Thu, May 22, 2014 at 7:00 AM, Jordan Clarke li...@ruby-forum.com wrote: Matt and Sam have never met nor worked with each other. They don't even know each other exists. Can my web app project be completed with Matt completing front-end and sending

Re: [Rails] Re: To create a Ruby on Rails app, does back-end need to occur before front-end?

2014-05-23 Thread tamouse pontiki
On Fri, May 23, 2014 at 2:25 PM, Jordan Clarke li...@ruby-forum.com wrote: Hassan Schroeder wrote in post #1146832: On Thu, May 22, 2014 at 7:00 AM, Jordan Clarke li...@ruby-forum.com wrote: Matt and Sam have never met nor worked with each other. They don't even know each other exists.