Re: [Rails] Problem serving image assets

2019-03-06 Thread Colin Law
I don't understand how it ever worked at all, now that I understand a bit more. I have a .js.coffee file in assets/javascripts that has in it lines like @marker_icon_red = new OpenLayers.Icon('/assets/red_pin.png', size, offset); so there is nothing to convert the url to digest version. Yet this

Re: [Rails] Problem serving image assets

2019-03-06 Thread Walter Lee Davis
> On Mar 6, 2019, at 10:29 AM, Walter Lee Davis wrote: > >> >> On Mar 6, 2019, at 10:16 AM, Colin Law wrote: >> >> On Wed, 6 Mar 2019 at 14:47, Walter Lee Davis wrote: >>> >>> On Mar 6, 2019, at 9:27 AM, Walter Lee Davis wrote: The asset pipeline needs a JavaScript interp

Re: [Rails] Problem serving image assets

2019-03-06 Thread Walter Lee Davis
> On Mar 6, 2019, at 10:16 AM, Colin Law wrote: > > On Wed, 6 Mar 2019 at 14:47, Walter Lee Davis wrote: >> >> >>> On Mar 6, 2019, at 9:27 AM, Walter Lee Davis wrote: >>> >>> The asset pipeline needs a JavaScript interpreter to work correctly on the >>> server. I usually install whatever

Re: [Rails] Problem serving image assets

2019-03-06 Thread Colin Law
On Wed, 6 Mar 2019 at 14:47, Walter Lee Davis wrote: > > > > On Mar 6, 2019, at 9:27 AM, Walter Lee Davis wrote: >> > > The asset pipeline needs a JavaScript interpreter to work correctly on the > > server. I usually install whatever version of Node.js is available in a > > package manager. Alt

Re: [Rails] Problem serving image assets

2019-03-06 Thread Walter Lee Davis
> On Mar 6, 2019, at 9:27 AM, Walter Lee Davis wrote: > >> >> On Mar 6, 2019, at 7:15 AM, Colin Law wrote: >> >> I hope someone can help me with an assets problem. I have had to >> rebuild a production server and images are no longer getting served. >> Unfortunately the working system is no

Re: [Rails] Problem serving image assets

2019-03-06 Thread Walter Lee Davis
> On Mar 6, 2019, at 7:15 AM, Colin Law wrote: > > I hope someone can help me with an assets problem. I have had to > rebuild a production server and images are no longer getting served. > Unfortunately the working system is no more so I can't compare what I > have with what used to work in or

[Rails] Problem serving image assets

2019-03-06 Thread Colin Law
I hope someone can help me with an assets problem. I have had to rebuild a production server and images are no longer getting served. Unfortunately the working system is no more so I can't compare what I have with what used to work in order to help diagnose the problem. I am using Rails 4.2 with

Re: [Rails] Problem With Blacklight Catalog Routes

2018-02-09 Thread Colin Law
On 8 February 2018 at 21:25, Dane Terrell wrote: > I've been trying to create it, and nothing seems to work. So my question > is, how do you create it. I've never worked with Ruby On Rails > In that case I suggest you start by working right through a good tutorial such as railstutorial.org, whic

Re: [Rails] Problem With Blacklight Catalog Routes

2018-02-09 Thread Hassan Schroeder
On Thu, Feb 8, 2018 at 1:25 PM, Dane Terrell wrote: > I've been trying to create it, and nothing seems to work. What is "it"? (Top-posting isn't helping here.) > I've never worked with Ruby On Rails You might want to spend a little time learning on a more vanilla Rails app in that case. -- Ha

Re: [Rails] Problem With Blacklight Catalog Routes

2018-02-08 Thread Dane Terrell
I've been trying to create it, and nothing seems to work. So my question is, how do you create it. I've never worked with Ruby On Rails On Thursday, February 8, 2018 at 1:12:23 PM UTC-8, Hassan Schroeder wrote: > > On Thu, Feb 8, 2018 at 12:48 PM, Dane Terrell > wrote: > > When I input localhos

Re: [Rails] Problem With Blacklight Catalog Routes

2018-02-08 Thread Hassan Schroeder
On Thu, Feb 8, 2018 at 12:48 PM, Dane Terrell wrote: > When I input localhost:3000 here is what I get > > NameError in CatalogController#index > > undefined local variable or method `search_state' for > # OK, so that's a totally different thing. Your request is being sent to the right controller,

Re: [Rails] Problem With Blacklight Catalog Routes

2018-02-08 Thread Dane Terrell
When I input localhost:3000 here is what I get NameError in CatalogController#index undefined local variable or method `search_state' for # Did you mean? search_results Extracted source (around line *#51*): 49 50 51 52 53 54 end elsif start_new_search_session? fin

Re: [Rails] Problem With Blacklight Catalog Routes

2018-02-08 Thread Hassan Schroeder
On Thu, Feb 8, 2018 at 12:02 PM, Dane Terrell answered 1 of 4 questions with: > Here is the output So it appears that the error message No route matches [GET] "/catalog" is correct 😀 Did you enter that in the address bar or did going to literally "http:/localhost:3000/" generate that err

Re: [Rails] Problem With Blacklight Catalog Routes

2018-02-08 Thread Dane Terrell
Here is the output rake routes Prefix Verb URI Pattern Controller#Action blacklight / Blacklight::E

Re: [Rails] Problem With Blacklight Catalog Routes

2018-02-08 Thread Hassan Schroeder
On Thu, Feb 8, 2018 at 9:53 AM, Dane Terrell wrote: > Hi, I'm starting my first ruby on rails app featuring blacklight with solr. > I can install and loginto the solr blacklight server on port 8983, but I > can't seem to access localhost:3000. It appears to be a routing issue. Never heard of Blac

[Rails] Problem With Blacklight Catalog Routes

2018-02-08 Thread Dane Terrell
Hi, I'm starting my first ruby on rails app featuring blacklight with solr. I can install and loginto the solr blacklight server on port 8983, but I can't seem to access localhost:3000. It appears to be a routing issue. When I try to access localhost:3000 here is what I get.. Routing Error No r

Re: [Rails] Problem using render text in basic rails application

2018-01-07 Thread Robert Phillips
On Sunday, 7 January 2018 22:34:10 UTC, Phil wrote: > > > render text: is deprecated. Stick with render plain: . > > > Phil > > Thanks -- 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 emai

Re: [Rails] Problem using render text in basic rails application

2018-01-07 Thread Phil Edelbrock
render text: is deprecated. Stick with render plain: . Phil > On Jan 7, 2018, at 2:12 PM, Robert Phillips > wrote: > > It works fine as far as this > > C:\blah>rails new test1 > > C:\blah\test1>rails server > > I edit application_controller.rb > > I add a function called hello > > def

[Rails] Problem using render text in basic rails application

2018-01-07 Thread Robert Phillips
It works fine as far as this C:\blah>rails new test1 C:\blah\test1>rails server I edit application_controller.rb I add a function called hello def hello render plain: "aasdf" end I edit the routes.rb file I add this line into the existing procedure within routes.rb root 'application#h

Re: [Rails] Problem on the view

2018-01-04 Thread André Luiz Abdalla Silveira
Shame on me, lol. Thank you folks. Really appreciate your help Em quarta-feira, 3 de janeiro de 2018 12:25:09 UTC-2, radhames brito escreveu: > > You have `partida.away` that returns a string, string does not have the > method `color1` I think you want to do, `partida.color1`. You error is that

Re: [Rails] Problem on the view

2018-01-03 Thread radhames brito
You have `partida.away` that returns a string, string does not have the method `color1` I think you want to do, `partida.color1`. You error is that you have `partida.away.color1`, its the same as saying `'Colorado Rockies'.color1` which makes no sense. On Tue, Jan 2, 2018 at 6:24 PM, André Luiz Ab

Re: [Rails] Problem on the view

2018-01-02 Thread Hassan Schroeder
On Tue, Jan 2, 2018 at 2:24 PM, André Luiz Abdalla Silveira wrote: > I'm having problems buillding my views, can you help me? I want every team > to be printed with different colors, and so I created a migration to include > these fields The problem is exactly as stated in the error message: you

[Rails] Problem on the view

2018-01-02 Thread André Luiz Abdalla Silveira

[Rails] Problem on the view

2018-01-02 Thread André Luiz Abdalla Silveira
Happy new year to all of you My view has a problem: I want different instances to be shown with different colors, so every instance has 3 fields related to colors (color1, color2, and font) on its database. I have already run the 'rake db:migrate' command so these fields are guaranteed to exist

Re: [Rails] Problem with Active Query condition

2017-11-26 Thread Ben Edwards
Actualy you missed the main thisg, not saying whitch version of rails I was using. I was using old syntax for 9I think 2.3) and was using rails 5. On Tuesday, November 21, 2017 at 2:04:27 AM UTC, Hassan Schroeder wrote: > > On Mon, Nov 20, 2017 at 4:46 PM, Ben Edwards > wrote: > > > What am I

Re: [Rails] Problem with Active Query condition

2017-11-20 Thread Hassan Schroeder
On Mon, Nov 20, 2017 at 4:46 PM, Ben Edwards wrote: > What am I doing wrong? In order: 1. not having a test for the method in the first place 2. not showing us the complete code for that method 3. not showing us the full log entry and stack trace 😀 -- Hassan Schroeder

[Rails] Problem with Active Query condition

2017-11-20 Thread Ben Edwards
I have the following code for an active record condition in a controller @thus_section = Section.all( :conditions => [ "url_section = ?", params[:ssection] ] ) And when I try to goto to the webpage asociated with it I get the following error: ArgumentError in UpcomingEventsController#index

Re: [Rails] problem starting unicorn, says unicorn not installed but it is

2017-09-13 Thread Norbert Melzer
I'm not a user of rbenv, but when I still used ruby and RVM I had to load rvm manually in startup scripts. RVM even had a function to create shims which did this for you. This is necessary, because RVM (and probably RBenv) are only loaded in a log in shell through its bash/zsh/whatever-rc files. T

Re: [Rails] problem starting unicorn, says unicorn not installed but it is

2017-09-13 Thread Ben Edwards
User in unicorn.rb is ben. When I am logged in as ben I can type unicorn and it finds/runs it. Ime using rbenv. I did have this working and reinstlled rbenv localy in the user. sould of mentioned ths buy it was a 2PAM post just before I caled it a day. Will post config files later when I g

Re: [Rails] problem starting unicorn, says unicorn not installed but it is

2017-09-13 Thread Norbert Melzer
Have you installed it for the correct user? Or locally to your current? On Mi., 13. Sep. 2017, 03:12 Ben Edwards wrote: > Logfile is: > > ben@whatnow:~/eventpuddle/eventpuddle/rails/eventpuddle$ systemctl status > unicorn_eventpuddle.service > ● unicorn_eventpuddle.service - LSB: starts the unic

[Rails] problem starting unicorn, says unicorn not installed but it is

2017-09-12 Thread Ben Edwards
Logfile is: ben@whatnow:~/eventpuddle/eventpuddle/rails/eventpuddle$ systemctl status unicorn_eventpuddle.service ● unicorn_eventpuddle.service - LSB: starts the unicorn app server Loaded: loaded (/etc/init.d/unicorn_eventpuddle; bad; vendor preset: enabled) Active: failed (Result: exit-co

[Rails] Problem when inheriting subclass

2017-08-16 Thread Daniel Faiole
Hi, I can't seem to find anything on the web regarding this error I found. I don't know if it's something i did wrong or just some kind of bug. I have 2 engines, named "Pes" and "Iss". "Pes" is the most atomic engine in our project and all other engines will add it as a dependency, it has these

Re: [Rails] Problem installing milia gem on rails

2017-07-23 Thread Colin Law
On 22 July 2017 at 18:00, Jack wrote: > I can't install milia gem on rails in my windows. I used > https://github.com/jekuno/milia#installation to see the instruction, but > it didn't work on my PC. Plz, help. It's very urgent. No-one will be able to help if all you tell us is that it doesn't w

[Rails] Problem installing milia gem on rails

2017-07-23 Thread Jack
I can't install milia gem on rails in my windows. I used https://github.com/jekuno/milia#installation to see the instruction, but it didn't work on my PC. Plz, help. It's very urgent. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

Re: [Rails] problem integrating bootstrap to rails .

2017-02-01 Thread tamouse pontiki
On Wed, Feb 1, 2017 at 6:05 AM kranthi ramireddy wrote: > i have a problem integrating bootstrap to the rails . i followed the > instructions given this link > http://stackoverflow.com/questions/18371318/installing-bootstrap-3-on-rails-app > and not able to load a navigation bar with this bootstr

[Rails] Problem with Sinatra, json and Rspec

2017-02-01 Thread Elton Santos
Hi, I have a giant problem that I'm 5 days stuck!!! I have a app: https://github.com/eltonsantos/locaweb-twitter But Can't work with tests. Look: it "Has response HTTP 200" do get "/" puts last_response.inspect expect(last_response).to have_http_status(:success) end In ins

[Rails] problem integrating bootstrap to rails .

2017-02-01 Thread kranthi ramireddy
i have a problem integrating bootstrap to the rails . i followed the instructions given this link http://stackoverflow.com/questions/18371318/installing-bootstrap-3-on-rails-app and not able to load a navigation bar with this bootstrap snippet WebSiteName Home

Re: [Rails] problem store hash field

2016-05-12 Thread Colin Law
On 12 May 2016 at 09:03, Alessio Varalta wrote: > Hi, I have an application in rails3 and i have a problem with store a > hash. I create a form with these two field > > id="person_birthplace[it]" value="" > > > id="person_birthplace[de]" value="" > > > The problem is when i call create and make

[Rails] problem store hash field

2016-05-12 Thread Alessio Varalta
Hi, I have an application in rails3 and i have a problem with store a hash. I create a form with these two field The problem is when i call create and make save i have this string in database for the field birthplace that is wrong --- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\n!bi

Re: [Rails] Problem with query and update table on db

2016-04-18 Thread Colin Law
On 18 April 2016 at 19:21, Elton Santos wrote: > Someone can help me please? I posted on stackoverflow here: > > http://stackoverflow.com/questions/36694536/no-implicit-conversion-of-symbol-into-integer-a-error-still-no-solution-for-me > > My problem is this: > > def new > if params[:authoriza

[Rails] Problem with query and update table on db

2016-04-18 Thread Elton Santos
Someone can help me please? I posted on stackoverflow here: http://stackoverflow.com/questions/36694536/no-implicit-conversion-of-symbol-into-integer-a-error-still-no-solution-for-me My problem is this: def new if params[:authorization].present? @selected_ids = params[:authorization][:

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) Normally it is the name of

[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 = current_account.people.find(param

Re: [Rails] Problem when running db:create

2015-12-03 Thread Advocatus Kakorozya
Thank you for your response On 3 Dec 2015 13:15, "Aboobacker MK" wrote: > You have to use ruby 1.8 and rails 2.3 , project fedena won't work in ruby > 2.2, use this guide for deploying fedena > http://aboobacker.in/deploying-fedena-using-ubuntu-14-04/ > > On Tuesday, November 17, 2015 at 4:30:24

Re: [Rails] Problem when running db:create

2015-12-03 Thread Aboobacker MK
You have to use ruby 1.8 and rails 2.3 , project fedena won't work in ruby 2.2, use this guide for deploying fedena http://aboobacker.in/deploying-fedena-using-ubuntu-14-04/ On Tuesday, November 17, 2015 at 4:30:24 PM UTC+5:30, Colin Law wrote: > > On 17 November 2015 at 10:10, Advocatus Kakoroz

Re: [Rails] Problem when running db:create

2015-11-18 Thread Advocatus Kakorozya
Dear Colin, Thanks you for your support Yes I still need help, but I am reluctant to use Fedena if its no longer supported then it will be difficult for me. I will need to confirm first before I can proceed I will be back to you Thanks again Advo On 19 Nov 2015 00:05, "Colin Law" wrote: On 18 Nov

Re: [Rails] Problem when running db:create

2015-11-18 Thread Colin Law
On 18 November 2015 at 11:00, Advocatus Kakorozya wrote: > > > On Tuesday, November 17, 2015 at 2:00:24 PM UTC+3, Colin Law wrote: >> >> On 17 November 2015 at 10:10, Advocatus Kakorozya >> wrote: >> > I have installed; >> > Ruby >> > ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] >> >

Re: [Rails] Problem when running db:create

2015-11-18 Thread Tamara Temple
Colin Law writes: > On 18 November 2015 at 08:28, Advocatus Kakorozya > wrote: >> Dear Colin, >> Thanks for your response, >> I have picked app already written called Fedena ( >> http://www.projectfedena.org/ ) > > Have you kept the files Gemfile.lock and Gemfile *exactly* as they > were

Re: [Rails] Problem when running db:create

2015-11-18 Thread Advocatus Kakorozya
On Tuesday, November 17, 2015 at 2:00:24 PM UTC+3, Colin Law wrote: > > On 17 November 2015 at 10:10, Advocatus Kakorozya > wrote: > > I have installed; > > Ruby > > ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] > > > > Rails 4.2.4 > > gem 2.5.0 > > > > MySQL > > > > Phusion

Re: [Rails] Problem when running db:create

2015-11-18 Thread Colin Law
On 18 November 2015 at 10:31, Advocatus Kakorozya wrote: > ... > I have not been able to locate the three dots like how I see them in my > gmail inbox browser > But now I have put the post at the bottom of the message, hope this will > display correctly, if not them I am direct my messages to my i

Re: [Rails] Problem when running db:create

2015-11-18 Thread Advocatus Kakorozya
On Wednesday, November 18, 2015 at 11:48:07 AM UTC+3, Colin Law wrote: > > On 18 November 2015 at 08:28, Advocatus Kakorozya > wrote: > > Dear Colin, > > Thanks for your response, > > I have picked app already written called Fedena ( > > http://www.projectfedena.org/ ) > > Have you ke

Re: [Rails] Problem when running db:create

2015-11-18 Thread Colin Law
On 18 November 2015 at 09:27, Advocatus Kakorozya wrote: > Dear Colin, > > Thanks but I think I hit a wrong button, this time I have pressed the top > red POST REPLY button, hope it should be correct No, you have still posted at the top. You have to click the three little dots down at the bott

Re: [Rails] Problem when running db:create

2015-11-18 Thread Advocatus Kakorozya
Sorry in my last post, the last sentence I meant to say this generated both Gemfile.lock and Gemfile On Tuesday, November 17, 2015 at 2:00:24 PM UTC+3, Colin Law wrote: > > On 17 November 2015 at 10:10, Advocatus Kakorozya > wrote: > > I have installed; > > Ruby > > ruby 2.2.1p85 (2015-02

Re: [Rails] Problem when running db:create

2015-11-18 Thread Advocatus Kakorozya
Dear Colin, Thanks but I think I hit a wrong button, this time I have pressed the top red POST REPLY button, hope it should be correct Below are the procedures I followed in the installation process [root@i-3781-9521-VM ~]# cp master projectfedena-projectfedena_v2.0-a213125.tar.gz[root@i

Re: [Rails] Problem when running db:create

2015-11-18 Thread Colin Law
On 18 November 2015 at 08:28, Advocatus Kakorozya wrote: > Dear Colin, > Thanks for your response, > I have picked app already written called Fedena ( > http://www.projectfedena.org/ ) Have you kept the files Gemfile.lock and Gemfile *exactly* as they were in the version you picked up (whic

Re: [Rails] Problem when running db:create

2015-11-18 Thread Advocatus Kakorozya
Dear Colin, Thanks for your response, I have picked app already written called Fedena ( http://www.projectfedena.org/ ) Regards, Advo On Tuesday, November 17, 2015 at 2:00:24 PM UTC+3, Colin Law wrote: > > On 17 November 2015 at 10:10, Advocatus Kakorozya > wrote: > > I have installe

Re: [Rails] Problem when running db:create

2015-11-17 Thread Colin Law
On 17 November 2015 at 10:10, Advocatus Kakorozya wrote: > I have installed; > Ruby > ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] > > Rails 4.2.4 > gem 2.5.0 > > MySQL > > Phusion Passenger version 5.0.21 > > + apache > > But when I run "rake db:create --trace" > > I get the following

[Rails] Problem when running db:create

2015-11-17 Thread Advocatus Kakorozya
I have installed; Ruby ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] Rails 4.2.4 gem 2.5.0 MySQL Phusion Passenger version 5.0.21 + apache But when I run "rake db:create --trace" I get the following error NoMethodError: undefined method `task' for # /home/lugala/apps/lib/tasks/rs

Re: [Rails] Problem with installing rails to OS X 10

2015-10-31 Thread Hassan Schroeder
On Sat, Oct 31, 2015 at 8:16 AM, Arto Lohi wrote: > I got error message "You don't have write permissions for the > /Library/Ruby/Gems/2.0.0 directory." when I tried install Rails to my Mac > using command line command "gem install rails". I have admin rights on my > machine. If you're using the

[Rails] Problem with installing rails to OS X 10

2015-10-31 Thread Arto Lohi
Hi! I got error message "You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory." when I tried install Rails to my Mac using command line command "gem install rails". I have admin rights on my machine. Can you help? Arto -- You received this message because you are sub

[Rails] Ruby on rails Problem

2015-10-15 Thread ezybizzuk
can some one tell me how to write this in ruby on rails active records objects form id *Payment.joins(:tenants).where(:payments {:name 'sample'})* SELECT p.*, `tenants`.*, IF (IFNULL(p.`amount`,'0') = 0, 'Pay Now', 'Paid') AS amount2 FROM ( SELECT `payments`.`amount` , `payments`.`te

Re: [Rails] Problem running ruby script with rails42

2015-09-14 Thread PandaR1
Il giorno venerdì 10 aprile 2015 14:53:10 UTC+2, d ha scritto: > > Did you find out how to fix this? > Yes, it was a jruby problem, I solved with jruby 1.7.22 ;) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from thi

Re: [Rails] Problem connecting to localhost:3000, still

2015-09-14 Thread Hassan Schroeder
On Mon, Sep 14, 2015 at 5:20 AM, Bill Fulbright wrote: > I don't get it. What is the issue with connecting to the rails server? What server are you using, and how are you trying to start it? If it fails to start there should be some kind of error message. -- Hassan Schroeder

[Rails] Problem connecting to localhost:3000, still

2015-09-14 Thread Bill Fulbright
I am building my environment on my Mac / Yosemite Here is my /etc/hosts file ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost

[Rails] Problem

2015-08-18 Thread Alexandru Fangli
Hey! I am new to this. Everything was fine while learning locally. I just contracted a web hosting plan that has Ruby on Rails features. I made my app, installed my gems, etc. The problem is I can't run commands and I seriously have no idea what to do to get started. Please help! -- You receiv

Re: [Rails] Problem with Creating table With MYSQL

2015-07-13 Thread Colin Law
On 13 July 2015 at 13:23, Sasi Raju wrote: > I have one question > > Shall I create a table with uppercase in Mysql from ruby on rails. > > becoz whatever iam giving the tablename only table creation format like > 1.lowercase > 2.underscore > 3.plural > > example > > tab_names . > > shall i change

[Rails] Problem with Creating table With MYSQL

2015-07-13 Thread Sasi Raju
I have one question Shall I create a table with uppercase in Mysql from ruby on rails. becoz whatever iam giving the tablename only table creation format like 1.lowercase 2.underscore 3.plural example tab_names . shall i change tab_names--->TABNAME?? is it rails default or possible to cha

[Rails] Problem in Edit row in plugin

2015-05-11 Thread Bahar
Hi I´m new in ruby on rails. I´ve written a plugin in redmine. And add this plugin to projects tab. I need to show something in that new tab, and edit the data. But now, I have 2 problems: 1. In the new tab, when I click on the Edit link, the edit page open in the new page out of projects tab.

[Rails] Problem with HABTM relation

2015-05-08 Thread Daniel Goldberg
When I try to create some User with the POST below I received the following msg: Completed 404 Not Found in 17005ms (Views: 1.7ms | ActiveRecord: 6.6ms). I debugged a little and I find this error Couldn't find Shared::Category with ID=5 for Shared::User with ID= I don't know really what's go

[Rails] Problem with validation

2015-04-29 Thread Gm
Hi, I'm using a custom validation method to validate some logic. But I realized that the database query is running two times. So the database is being called twice. The validation method just display an error if array items are duplicated. Log: Questao Load (0.4ms) ["a", "a"] Questao Load (0.4m

[Rails] Problem with validation

2015-04-29 Thread Gm
Hi, I'm using a custom validation method to validate some logic. But i realized that the database query is running two times. So the database is being called twice. The validation methos just display an error if array items are duplicated. Log: Prova Load (0.4ms) ["a", "a"] Questao Load (0.4ms)

Re: [Rails] Problem with bundler install

2015-04-08 Thread Colin Law
On 8 April 2015 at 03:14, Darko wrote: > Helo, i have a problem when i try to use ->rails new proyect, this show me > an error > 'An error occurred while installing rake <10.4.2> and bundler cannot > continue. > Make sure that gem install rake -v 10.4.2 succeeds before bundling.' > > What can i do

[Rails] Problem with bundler install

2015-04-07 Thread Darko
Helo, i have a problem when i try to use ->rails new proyect, this show me an error 'An error occurred while installing rake <10.4.2> and bundler cannot continue. Make sure that gem install rake -v 10.4.2 succeeds before bundling.' What can i do with this?? -- You received this message because

[Rails] Re: creating new rails problem

2015-03-30 Thread Ant Na
So finally I was fed up and just decided to reinstall rails and now it works flawlessly! Thank you s much for everyones time! You live you learn! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

Re: [Rails] Re: creating new rails problem

2015-03-30 Thread Norm Scherer
On 03/30/2015 05:19 PM, Ant Na wrote: I tried all of your suggestions...I still get the same results even after replying "y" twice: overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaq.. Blog was already deleted before I posted. Is there another tmp folder hidden som

[Rails] Re: creating new rails problem

2015-03-30 Thread Ant Na
I tried rails new cows (new name) and i still get the same output :( -- 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 ema

Re: [Rails] Re: creating new rails problem

2015-03-30 Thread Hassan Schroeder
On Mon, Mar 30, 2015 at 5:19 PM, Ant Na wrote: > overwrite config/initializers/session_store.rb? (enter "h" for help) > [Ynaqdh] y >force config/initializers/session_store.rb > overwrite config/initializers/cookie_verification_secret.rb? (enter "h" > for help) [Ynaqdh] y >force

[Rails] Re: creating new rails problem

2015-03-30 Thread Ant Na
I tried all of your suggestions...I still get the same results even after replying "y" twice: overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] y force config/initializers/session_store.rb overwrite config/initializers/cookie_verification_secret.rb? (enter "h"

[Rails] Re: creating new rails problem

2015-03-30 Thread Ankit Raj
you have to press yes . then run rails s for stop server press ctrl-c, then gsin run it. hope you have got ur solution. On Monday, March 30, 2015 at 8:50:41 AM UTC+5:30, Ruby-Forum.com User wrote: > > I got everything to work. When I first tried: > > rails new myApp > > it created the app and

Re: [Rails] creating new rails problem

2015-03-30 Thread Colin Law
On 30 March 2015 at 04:20, Ant Na wrote: > ... > here is where I am at now: > > > ~$ rails new blog > /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv > will be deprecated in the future, use String#encode instead. > /usr/lib/ruby/vendor_ruby/railties/lib/rails_generator/genera

Re: [Rails] creating new rails problem

2015-03-29 Thread Krishna Gundala
If the error says the server is already running, Can you go to temp/pids folder there you see a PID associated to the sever. Delete it and run again. It should work. [image: --] Mohan Krishna Gundala [image: https://]about.me/gmk.india On Mon, Mar

[Rails] creating new rails problem

2015-03-29 Thread Ant Na
I got everything to work. When I first tried: rails new myApp it created the app and then I ran: rails server that worked fine too with localhost:3000 but then I tried making another app, which was created but gave me a message stating that server is already running and then it exited. Therefo

Re: [Rails] Problem with current_page? & request.url.

2015-03-14 Thread Vivek Sampara
current_page?(controller: params[:controller], action: params[:action]) is not a recommended way to check as params[:controller] and params[:action] are created during the action dispatch flow. what is the output for this ? current_page?(controller: 'courses', action: 'index') On Sat, Mar 14, 2

Re: [Rails] Problem with current_page? & request.url.

2015-03-13 Thread Dmitry Shvetsov
Hi, What is in your rake routes output? Do you have /courses route? On Saturday, March 14, 2015, Diego Algorta wrote: > Hi everyone. > > (Rails 4.1.x) > > I'm trying to add a css class in a view but only if > current_page?(courses_path) #=> true. The problem I'm having is that that > is never r

[Rails] Problem with current_page? & request.url.

2015-03-13 Thread Diego Algorta
Hi everyone. (Rails 4.1.x) I'm trying to add a css class in a view but only if current_page?(courses_path) #=> true. The problem I'm having is that that is never returning true even if (according to the docs) it should. I created a gist with a short debugging session where I think the problem

Re: [Rails] Problem with a simple open-uri request

2015-03-11 Thread Scott Ribe
On Mar 11, 2015, at 8:46 AM, Nicolò Benigni wrote: > > getaddrinfo: Name or service not known So it's unable to resolve the host name. Either you've got the name wrong, or there's something in your OS config preventing it from being resolved correctly. -- Scott Ribe scott_r...@elevated-dev.co

[Rails] Problem with a simple open-uri request

2015-03-11 Thread Nicolò Benigni
I need to call third party API in my rails app. I decide to use open-uri (but also tried the NET::HTTP.get and gives me the same error), and to this: open("http://www.example.org";) do |f| puts f.base_uri #=> http://www.example.org puts f.status #=> ["200", "OK"] end But it gives

Re: [Rails] Problem running ruby script with rails42

2015-02-03 Thread PandaR1
Il giorno lunedì 2 febbraio 2015 19:39:31 UTC+1, Hassan Schroeder ha scritto: > > On Fri, Jan 30, 2015 at 8:43 AM, PandaR1 > wrote: > > > Now with 4.2.0 I got this error: > > > Do I have to modify something or it's a bug? > > See: https://github.com/jruby/jruby/issues/2286 > > I suspect that'

Re: [Rails] Problem running ruby script with rails42

2015-02-02 Thread Hassan Schroeder
On Fri, Jan 30, 2015 at 8:43 AM, PandaR1 wrote: > Now with 4.2.0 I got this error: > Do I have to modify something or it's a bug? See: https://github.com/jruby/jruby/issues/2286 I suspect that's your issue. HTH! -- Hassan Schroeder hassan.schroe...@gmail.com http://a

Re: [Rails] Problem running ruby script with rails42

2015-02-02 Thread PandaR1
Il giorno lunedì 2 febbraio 2015 14:14:02 UTC+1, Xavier Noria ha scritto: > > The natural way to run a script in a Rails environment is to use the > runner command. > > 1) Remove manual requires. > > 2) bin/rails runner my_script.rb > does not seems to work under jruby... rails batch seems to

Re: [Rails] Problem running ruby script with rails42

2015-02-02 Thread PandaR1
> > The point is which is the one you add that causes this particular > error to occur? Once you find that then leave it in and take the > others out, then add them back in one at a time to find out which is > the one that adds the second initialisation. > I can remove require 'rubygems' Bu

Re: [Rails] Problem running ruby script with rails42

2015-02-02 Thread Xavier Noria
The natural way to run a script in a Rails environment is to use the runner command. 1) Remove manual requires. 2) bin/rails runner my_script.rb -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop rec

Re: [Rails] Problem running ruby script with rails42

2015-02-02 Thread Colin Law
On 2 February 2015 at 10:17, PandaR1 wrote: >> My guess would be that something is getting loaded twice. I suggest >> taking out all the requires and putting them back till you get the >> problem. That may help you to home in on it. > > > Yes, it seems some constant is already initialized. > > I

Re: [Rails] Problem running ruby script with rails42

2015-02-02 Thread PandaR1
> > My guess would be that something is getting loaded twice. I suggest > taking out all the requires and putting them back till you get the > problem. That may help you to home in on it. > Yes, it seems some constant is already initialized. I tried removing the includes, but they are all ne

Re: [Rails] Problem running ruby script with rails42

2015-01-30 Thread Colin Law
On 30 January 2015 at 16:43, PandaR1 wrote: > This very simple script was running in 4.1.6 > > require '.\config\config.rb' > require '.\models\transazioni.rb' > > Transazioni.where(isprocessed: 'N').each do |tr| > puts tr.id_transazione + ' ' + tr.transdate.to_s + ' ' + tr.idmaximo.to_s + > ' ' +

[Rails] Problem running ruby script with rails42

2015-01-30 Thread PandaR1
This very simple script was running in 4.1.6 require '.\config\config.rb' require '.\models\transazioni.rb' Transazioni.where(isprocessed: 'N').each do |tr| puts tr.id_transazione + ' ' + tr.transdate.to_s + ' ' + tr.idmaximo.to_s + ' ' + tr.codsap end exit database.yml: # DATA SOURCE dataso

Re: [Rails] Problem with root

2014-11-24 Thread Walter Lee Davis
What does the Apache conf file look like for this host? Apache is trying to tack an auto-index on this page, which is messing with the route passed in from Passenger. Here's a snippet from one of mine -- note the -Indexes directive. Does yours have that? Options -Index

Re: [Rails] Problem with root

2014-11-24 Thread Jason Fleetwood-Boldt
show us what happens when you run tail -f log/development.log in a console window while you hit the page in your browser > On Nov 24, 2014, at 1:10 PM, Francisco Bereciartu > wrote: > > Hi All, > > I'm new in the ruby on rails world. I would like to ask you about any > advice accordi

[Rails] Problem with root

2014-11-24 Thread Francisco Bereciartu
Hi All, I'm new in the ruby on rails world. I would like to ask you about any advice according to this problem I'm having problems with redirection, I have this line in the routes.rb root :to => 'welcome#index', :as => 'home' in the app/controllers folder I have welcome_controller.rb and in t

[Rails] Problem on reading a web page (no matter using Net:HTTP or nokogiri)

2014-05-17 Thread Nick T.
Currently I am trying to get some reference data from bet.hkjc.com/football/index.aspx?lang=ch&pageno=1 However, I could not read the content (page source) properly even though I used force_encoding or String.encode! after getting the response.body Same coding is working fine for other site, but

  1   2   3   4   5   6   7   8   9   >