[Rails] Re: No route matches [POST] "/home/new"

2016-01-28 Thread Bob Tian
I actually did not rename it to default.js, but when I try to do that and access localhost I get an error: ExecJS::ProgramError in People#index Showing: /app/views/layouts/application.html.erb where line #6 raised: TypeError: Object doesn't support this property or method and line 6 which is:

Re: [Rails] The best source to start

2016-01-28 Thread Colin Law
On 28 January 2016 at 15:16, Benyamin Pm wrote: > hi everyone. > > i'm new in ruby/On rails > > i want to start lerning ruby on rails from zero to 100! i tried in > tutorialpoints.com && The best source to start but either have problems! > when i start , in second or third

[Rails] error on booking futsal according to it ground

2016-01-28 Thread Abhishek Acharya
i am doing a project for futsal booking. Now i can book a ground of futsal but having problem to book futsal with many ground. How can i do it ? I want show the ground number when its booked along with futsal_id ... -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] Ruby Developer

2016-01-28 Thread Sandeep Jain
Phone/skype Hire Location: Columbia, SC (Can be remote) Duration: 10+ months Rate: Open This is a 10 month contract to update and expand an existing Ruby on Rails application. Work will include API development, writing API documentation, and other development work to meet contract

[Rails] Re: No route matches [POST] "/home/new"

2016-01-28 Thread Bob Tian
Hm, I found this from stackoverflow http://stackoverflow.com/questions/7281907/rails-3-1-issue-with-javascript-include-tag-in-application-html-erb and if I remove //= require_tree and //= turbolinks then I can include application.js and the add/delete does work for scaffold, but I still cannot

[Rails] Is there any simple deployment tool for rails app?

2016-01-28 Thread aaron
Hi I am new to RoR. I am on a mission to deploy my SpreeCommerce store to my VPS. It looks like a simple task but I have been working on it for 3 days. Installing Spree and running it on development mode is a piece of cake. But I have no experience on deploying the app and automating the

[Rails] Re: Ruby on Rails Tutorial - test, reset password

2016-01-28 Thread 'krfg' via Ruby on Rails: Talk
On Wednesday, January 27, 2016 at 10:46:39 AM UTC+1, Ruby-Forum.com User wrote: > > But if so, @user from fixtures should also have > reset_token now (if its reset_digest was influenced by create action > (specifically create_reset_digest method). Can someone please take a > look? > I am

Re: [Rails] Re: Re: No route matches [POST] "/home/new"

2016-01-28 Thread Mike Simkins
I assume therefore you also renamed the /app/assets/javascripts/application.js to default.js sorry I do not develop under Windows, so cannot be sure if there is not some other issue related to that, there are a number of shortcomings when you use rails on Windows, but that is mainly gem

Re: [Rails] before_action for only one action

2016-01-28 Thread Martin
Hi tamouse, tamouse pontiki writes: >> Is there another way doing that? Or is this the recommend way? > > If you want it for only one action, Jay call it in the action. I tried it, but I have a view, so interesting that it doesn't work, because they have a redirect_to inside. If I put it in

Re: [Rails] form_for not rendering :html => {}

2016-01-28 Thread Colin Law
On 27 January 2016 at 19:09, Mendel wrote: > Hi I am trying to disable chrome's html5 validations. I have added > :html => {:novalidate => 'novalidate'} > to the form tag but when I check the form in the browser it is not there and > the validations keep me from submitting the

[Rails] Confirm box depending on input value

2016-01-28 Thread Nadiya Karachevska
I'm very new to javascript so don't judge hard (any suggestions or comments would be highly appreciated). I have a form in my rails app (haml file): = simple_form_for(@book, remote: true) do |f| .row .form-group = f.input :book_title, as: :string, label: "Title of a book" %br =

Re: [Rails] Re: No route matches [POST] "/home/new"

2016-01-28 Thread Mike Simkins
So something is definitely broken in your Javascripts, or the views - the scaffold code there is what I am used to seeing, just referencing the record rather than the explicit ID you pass in. I am at a loss as to why Windows is complaining when you change the name, or indeed why it would not

[Rails] Re: form_for not rendering :html => {}

2016-01-28 Thread Mendel Schneerson
Sorry I put the wrong line of HTML, the form works: Here it is in Chrome What is interesting is that in Firefox the tag shows up and works fine: -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Re: Is there any simple deployment tool for rails app?

2016-01-28 Thread aaron
OK now I know what I actually need. I just need a Puma daemon service. I have found this link:https://github.com/puma/puma/tree/master/tools/jungle/init.d Hope it will help me. I will test it in the afternoon. On Friday, January 29, 2016 at 7:22:51 AM UTC+8, aaron wrote: > > Hi I am new to RoR.