[Rails] Re: Can't get css to work

2016-01-26 Thread Ace M.
Does anyone know why I can't get an external style sheet work work when using JSP files? Putting a link in the doc head like I would for an HTML or PHP file does not work. The style sheet is in the exact same directory as the JSP files and I cannot get it to work. I think I have tried about

Re: [Rails] Re: Re: Re: Re: Gem::Load error

2016-01-26 Thread Colin Law
On 26 January 2016 at 09:52, Benyamin Pm wrote: > Colin Law wrote in post #1180906: >> On 26 January 2016 at 07:48, Benyamin Pm wrote: not realise this shows that you really need to work through the tutorial that I suggested. Colin

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

2016-01-26 Thread Justin Yoon
I'm pretty new to ruby as well but I think the problem is that the Rails router doesn't know what to do with a POST request to "/home/new". I think you just have to add this line to routes.rb: post 'home/new', to: 'home#new' Like I said I'm a newbie myself so I'd love it if someone could correct

[Rails] Re: problem with mass asignment

2016-01-26 Thread Andrew Dig
Colin Law wrote in post #1180931: > On 26 January 2016 at 20:20, Andrew Dig wrote: >> Hi everyone. I'm new in ruby and recently faced with mass assignment >> problem. Below I attached a sample code similar to mine. Could you >> explain me what should I use in require

[Rails] Re: problem with mass asignment

2016-01-26 Thread Frederick Cheung
On Tuesday, January 26, 2016 at 8:21:21 PM UTC, Ruby-Forum.com User wrote: > > Hi everyone. I'm new in ruby and recently faced with mass assignment > problem. Below I attached a sample code similar to mine. Could you > explain me what should I use in require method??? is it a name of >

[Rails] Re: problem with mass asignment

2016-01-26 Thread Andrew Dig
Thank you very much. Now it is clear -- Posted via http://www.ruby-forum.com/. -- 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 from it, send an email to

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

2016-01-26 Thread Bob Tian
I dont get the error, but when I try to save the data, it seems to reload the page again, and the data doesnt get saved. It doesn't appear at all when i go back to /home -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Can't get css to work

2016-01-26 Thread Colin Law
On 26 January 2016 at 02:36, Mark Stevens wrote: > Hello, > > I created a bare bones rails app with the sole purpose of trying to add > css styling to a webpage via the stylesheet_link_tag method. I am > getting an error that looks like this: > > JSON::ParserError in

Re: [Rails] Re: Re: Re: Gem::Load error

2016-01-26 Thread Colin Law
On 26 January 2016 at 07:48, Benyamin Pm wrote: > Colin Law wrote in post #1180898: >> On 25 Jan 2016 22:36, "Benyamin Pm" wrote: >>> > asked for? Please just copy/paste your Gemfile here so that we can >>> list of gems : >>> >>> *** LOCAL GEMS ***

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-26 Thread Usman Shahid
Parsing isn't the issue. The problem is that I don't want to rewrite code every time a new dataset is added. I want to provide an abstract interface as well under which I can plug any data-set. On 25 January 2016 at 06:43, Walter Lee Davis wrote: > I would just make an

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-26 Thread Matt Jones
The query interface you're describing sounds a lot like Elastic (formerly Elasticsearch): https://www.elastic.co/products/elasticsearch --Matt Jones On Tuesday, 26 January 2016 02:19:23 UTC-6, Usman Shahid wrote: > > Parsing isn't the issue. The problem is that I don't want to rewrite code >

[Rails] Web Worker javascript files

2016-01-26 Thread Paul
Using web workers in Rails seems a little awkward. I was wondering if anyone had a nice work flow. 1) Since they are loaded directly, they can't be in the asset pipeline, so I created a folder under public: public/web_workers/ Disadvantages: - The web worker code isn't minimized. - The web

[Rails] google map for rails

2016-01-26 Thread Matti Ezzat
Hi everyone, I need an Idea of how to put a google map in my application, I have field and I want to fill it with address and I want a map in the next line showing the address that I entered in my field.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-26 Thread Usman Shahid
Thanks Matt. This looks very promising. On 26 January 2016 at 19:58, Matt Jones wrote: > The query interface you're describing sounds a lot like Elastic (formerly > Elasticsearch): https://www.elastic.co/products/elasticsearch > > --Matt Jones > > On Tuesday, 26 January 2016

[Rails] Online vs offline IDE

2016-01-26 Thread 'krfg' via Ruby on Rails: Talk
I am aware that Rubyists prefer to use Sublimetext, Vim or TextMate and I personally like Atom (which is open source), but I got used to studying Ruby on Rails with an IDE and personally found it useful, although I suppose I mainly appreciate the integrated terminal and I have no other

[Rails] problem with mass asignment

2016-01-26 Thread Andrew Dig
Hi everyone. I'm new in ruby and recently faced with mass assignment problem. Below I attached a sample code similar to mine. Could you explain me what should I use in require method??? is it a name of model(person) or a variable name which I assign result(person =

[Rails] Schema dump not working when using sql schema prefixes

2016-01-26 Thread Christopher Mendla
I am running ruby 2.0.0p247 (2013-06-27) [i386-mingw32] / rails 4.2.5 Because of the way we will be doing things, I am using one sql database on the server with schema prefixes. i.e. a joblist app would use jl. as the schema prefix. I noticed that when I did this, migrations and schema dumps no

[Rails] Re: [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-26 Thread spike22
Hi Aaron, thanks for the heads up :) Rails LTS has released their own patched version of 3.2.22 with the following notes: [CVE-2016-0753] Possible Input Validation Circumvention in Active Model Original announcement here

Re: [Rails] problem with mass asignment

2016-01-26 Thread Colin Law
On 26 January 2016 at 20:20, Andrew Dig wrote: > Hi everyone. I'm new in ruby and recently faced with mass assignment > problem. Below I attached a sample code similar to mine. Could you > explain me what should I use in require method??? is it a name of > model(person)

[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-26 Thread Matthew Draper
> Rails LTS has released their own patched version of 3.2.22 with the following > notes: > > [CVE-2016-0753] Possible Input Validation Circumvention in Active Model > [..] > Despite what the announcement said, Rails 3.2 is affected. The issue is > patched in the new LTS release. > >

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

2016-01-26 Thread Bob Tian
Hello all, I'm new to ruby and I am having trouble with adding new data (name, height, weight, etc). Everytime I try to save my data, I get this error: No route matches [POST] "/home/new" Rails.root: C:/Users/Jeffrey/blog Request Parameters: {"utf8"=>"✓",

[Rails] Re: Re: Re: Re: Gem::Load error

2016-01-26 Thread Benyamin Pm
Colin Law wrote in post #1180906: > On 26 January 2016 at 07:48, Benyamin Pm wrote: >>> not realise this shows that you really need to work through the tutorial >>> that I suggested. >>> >>> Colin > >> gem 'rails', '4.2.5' >> >> >> # Call 'byebug' anywhere in the code to