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

2016-01-27 Thread Mike
You have an error in your controller You have @article.save in the create action, rather than @input.save Additionally it is convention to use the same name of the variable as the model, so you should really use @person = Person.new, rather than @input = Person.new You can always check what r

[Rails] co#ntact@%%%@#$%%%1800_303_1158Microsoft Office1800.303.1158 office technical support number

2016-01-27 Thread Mega Supports
office 2013 technical support number office 2013 technical support number usa office 2013 technical support phone office 2013 technical support phone number office 2013 technical support phone number usa office 2013 technical support telephone office 2013 technical support telephone number office 2

[Rails] Online vs offline IDE

2016-01-27 Thread Mike
Both Rubymine and Aptana can be a bit slow / bloated, and they do have different feature levels (last time I looked). As they are both Java based you gain the benefit of the introspection which allows the intelligent completion of method name. The choice of an IDE is subjective, as is any edito

[Rails] @@@##%%%%NOW Support +@ +1800-303-1158 Microsoft Office 365 customer Support Phone Number M-I-C-R-O-

2016-01-27 Thread Mega Supports
OFFICE @ 1-800-303-1158 microsoft word technical support phone number**OFFICE @ 1-800-303-1158 microsoft technical support phone number %%@ 1-800-303-1158 microsoft 365 technical support phone number%%OFFICE @ 1-800-303-1158 office 365 technical support phone number usOFFICE @ 1-800-303-1158 mi

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

2016-01-27 Thread Magdalena Co
I have problem with understanding one code in Michael Hartl's tutorial. In class PasswordResetsTest, in test "password resets" we took our user from fixtures, we posted to password_resets_path with right mail and we asserted that @user.reset_digest doesn't equal @user.reload.reset_digest. Later, Mi

[Rails] migrate error

2016-01-27 Thread Benyamin Pm
i have problem with 'rake db:migrate' i use this tutorial => http://www.tutorialspoint.com/ruby-on-rails/rails-routes.htm form first step to this step. when i type 'rake db:migrate' in my terminal. i get this error => == 20160127215334 Books: migrating =

Re: [Rails] migrate error

2016-01-27 Thread Colin Law
On 27 January 2016 at 13:32, Benyamin Pm wrote: > i have problem with 'rake db:migrate' > > i use this tutorial => > http://www.tutorialspoint.com/ruby-on-rails/rails-routes.htm > > form first step to this step. > > when i type 'rake db:migrate' in my terminal. > > i get this error => > > == 20160

[Rails] Re: migrate error

2016-01-27 Thread Benyamin Pm
Colin Law wrote in post #1180957: > On 27 January 2016 at 13:32, Benyamin Pm wrote: >> >> text, "created_at" timestamp) > The error indicates that the migration calls for the creation of the > books table, but that table already exists. > > Colin but i don't create any table called 'books' for

Re: [Rails] Re: migrate error

2016-01-27 Thread Colin Law
On 27 January 2016 at 14:28, Benyamin Pm wrote: > Colin Law wrote in post #1180957: >> On 27 January 2016 at 13:32, Benyamin Pm wrote: >>> >>> text, "created_at" timestamp) >> The error indicates that the migration calls for the creation of the >> books table, but that table already exists. >> >>

[Rails] Re: Online vs offline IDE

2016-01-27 Thread 'krfg' via Ruby on Rails: Talk
On Wednesday, January 27, 2016 at 9:21:34 AM UTC+1, Mike wrote: > > Both Rubymine and Aptana can be a bit slow / bloated, and they do have > different feature levels (last time I looked). As they are both Java based > you gain the benefit of the introspection which allows the intelligent > com

Re: [Rails] Re: Online vs offline IDE

2016-01-27 Thread Hassan Schroeder
On Wed, Jan 27, 2016 at 8:05 AM, 'krfg' via Ruby on Rails: Talk wrote: > I am wondering if a painless transition from an IDE to the use of editor + > terminal is possible, especially for beginners like me that have started to > study with an online IDE. Painless? Probably not. Worth while? Proba

[Rails] how do i access attriutes when using eager_load has_many

2016-01-27 Thread tom
Hi this code: x = Project.where('status=?','active').eager_load(:tasks) produces a nice query, in sql everythig is ok, all columns have been alias as t0_r1, but how do i access it? my loops are failing when tryin to access the associates attribute: x = Project.where('status=?','active

Re: [Rails] how do i access attriutes when using eager_load has_many

2016-01-27 Thread Hassan Schroeder
On Wed, Jan 27, 2016 at 9:49 AM, tom wrote: > x = Project.where('status=?','active').eager_load(:tasks) > but how do i access it? my loops are failing when tryin to access the > associates attribute: > > x = Project.where('status=?','active').eager_load(:tasks) > x.each do |rec| >

Re: [Rails] how do i access attriutes when using eager_load has_many

2016-01-27 Thread tom
ok, u r right - i was just frustrated because i was going back and forth between joins , includes etc - here the 'error' undefined method `id' for # p rec.tasks.id On Wed, Jan 27, 2016 at 1:06 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Wed, Jan 27, 2016 at 9:49 AM, tom wrot

Re: [Rails] how do i access attriutes when using eager_load has_many

2016-01-27 Thread tom
ok, if i do this then i can acces the associated records: x = Project.where('status=?','active').eager_load(:tasks) x.each do |rec| p rec.id #<< OK rec.tasks each do |y| p y.id end end i guess i was just expecting a flat table because thats

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

2016-01-27 Thread Bob Tian
Hello, thanks to you I have been able to add in the data. I also changed and cleaned up the code and used the convention with regards to the variables. I have another question regarding the destroy/deleting data, when I click on delete, it directs me to show where i can view the data, but does not

[Rails] before_action for only one action

2016-01-27 Thread Martin
Hi there, If I want a before_action for only one action, like before_action check_something_with_redirect_if_any, only: :index Is there another way doing that? Or is this the recommend way? If not what else could work here? Thanks, Martin -- You received this message because you are subscrib

[Rails] Usual way for person data?

2016-01-27 Thread Martin
Hi there, What is the usual way to let a user modify his own data and the admin to edit and view the data of all users. I could do: 1) create a Person model with a route resources :people that works fine, if I check the permissions for :admin and non admin accounts. but for a user I have the /

Re: [Rails] before_action for only one action

2016-01-27 Thread Karthikeyan A K
You can put like this before_action check_something_with_redirect_if_any, except: [all actions except index] but its very verbose :D On Thu, Jan 28, 2016 at 12:43 AM, Martin wrote: > Hi there, > > If I want a before_action for only one action, like > > before_action check_something_with_redire

[Rails] Usual way for person data?

2016-01-27 Thread Martin
Hi there, What is the usual way to let a user modify his own data and the admin to edit and view the data of all users. I could do: 1) create a Person model with a route resources :people that works fine, if I check the permissions for :admin and non admin accounts. but for a user I have the

[Rails] form_for not passing html attributes

2016-01-27 Thread Mendel Schneerson
Hello, I am trying to disable chrome HTML5 validations by setting the novalidate attribute. form_for(:customer, url: {:action => 'update', :id => @customer.id, :account_settings => true},:html => {:novalidate => 'novalidate'}) do |f| = render(:partial => 'form', :locals => {:f => f}) B

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

2016-01-27 Thread Mendel
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 form. Here is all the relevant (I think) code. Enter code here...for

[Rails] Re: [Rails-core] [ANN] Rails 5.0.0.beta1.1, 4.2.5.1, 4.1.14.1, 3.2.22.1, and rails-html-sanitizer 1.0.3 have been released!

2016-01-27 Thread spike22
Thanks Matthew, I'll alert the LTS team to this thread for their input :) On Wednesday, January 27, 2016 at 11:34:18 AM UTC+13, matthewd wrote: > > > > Rails LTS has released their own patched version of 3.2.22 with the > following notes: > > > > [CVE-2016-0753] Possible Input Validation Circ

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

2016-01-27 Thread Colin Law
On 27 January 2016 at 18:54, Bob Tian wrote: > Hello, thanks to you I have been able to add in the data. I also changed > and cleaned up the code and used the convention with regards to the > variables. I have another question regarding the destroy/deleting data, > when I click on delete, it direc

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

2016-01-27 Thread Mike Simkins
In the delete link, you need to use the delete method-Rails now expects a delete verb, where as your code is generating a get I believe So > <%= link_to 'Delete', :controller => "people", :action > => "destroy", :id => e, :method => :delete %> Sent from my iPhone > On 27 Jan 2016, at 18:54,

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

2016-01-27 Thread Bob Tian
Mike S. wrote in post #1180984: > In the delete link, you need to use the delete method-Rails now expects > a delete verb, where as your code is generating a get I believe > > So > >> <%= link_to 'Delete', :controller => "people", :action >> => "destroy", :id => e, :method => :delete %> > > > > Sen

Re: [Rails] before_action for only one action

2016-01-27 Thread tamouse pontiki
On Jan 27, 2016 1:13 PM, "Martin" wrote: > > Hi there, > > If I want a before_action for only one action, like > > before_action check_something_with_redirect_if_any, only: :index > > Is there another way doing that? Or is this the recommend way? If you want it for only one action, Jay call it i