[Rails] Re: help me perform my first searchkick search

2020-02-04 Thread fugee ohu
On Tuesday, February 4, 2020 at 8:08:17 PM UTC-5, fugee ohu wrote: > > So far, I don't get any results returned > > user.rb: > > searchkick word_middle: ['full_name', 'description', 'interests'] > > def full_name > [first_name, last_name].join(' ') > end > > def search_data >{ >

[Rails] Re: help me debug this model

2018-03-27 Thread fugee ohu
Actually the first thing is see when I visit that link is the use of validate without the s On Tuesday, March 27, 2018 at 6:54:34 AM UTC-4, Allen Maxwell wrote: > > It might help to have the models for auction and user... also, I like to > add the annotate gem which gives some header comments in

[Rails] Re: help me debug this model

2018-03-27 Thread fugee ohu
Ok, and I don't understand what this means: validates :auction_active?, message: :auction_active class Auction < ActiveRecord::Base include ApplicationHelper belongs_to :product belongs_to :image has_many :bids validates :product, :image, :min_price, :start_price, :start_time, :durati

[Rails] Re: help me debug this model

2018-03-27 Thread Allen Maxwell
It might help to have the models for auction and user... also, I like to add the annotate gem which gives some header comments in all my models to show what fields etc are there. Very helpful info and references. you already know that the validate needs to be validates... is this an active sys

[Rails] Re: help me debug this model

2018-03-27 Thread fugee ohu
On Monday, March 26, 2018 at 8:17:56 PM UTC-4, fugee ohu wrote: > > This model has some errors that I wasn't able to get sorted out the two > lines that begin with validate should be validates but after that I don't > understand what the author's trying to do If I change them to validates I >

[Rails] Re: help with ransack / mysql performance

2018-01-29 Thread D F
That query looks suspiciously like you might be using kaminari for pagination? If so that is what is causing this slow query. See https://github.com/kaminari/kaminari#paginating-without-issuing-select-count-query for how to solve that. I don't believe ransack ever needs to count anything. On

[Rails] Re: help with ransack / mysql performance

2017-10-15 Thread Ben Edwards
your like '%Tampa% will not use an index. Looks like you are implementing some type of search. For this type of free text search SQL is not a good option. Elasticsearch is worth looking at or goodle for 'rails free text serach tools'. Ben On Thursday, October 12, 2017 at 3:17:04 PM UTC+1, d

[Rails] Re: Help with gestalt of Pundit's authorize, please

2017-07-18 Thread Frederick Cheung
> > >> On Monday, July 17, 2017 at 1:08:08 PM UTC+1, Ralph Shnelvar wrote: > > While I'm at it ... > > In > > authorize(@post) > > WHAT is being "authorize-d"? The @post ? The current_user ? The > controller action ? Something else ? > > All 3: this checks that the current user can perform a

[Rails] Re: Help with gestalt of Pundit's authorize, please

2017-07-18 Thread Frederick Cheung
On Monday, July 17, 2017 at 8:02:11 AM UTC+1, Ralph Shnelvar wrote: > > > authorize(@post) > means ... > > For the current user (i.e. current_user) and > for the @post object > throw a NotAuthorizedError exception if PostPolicy#create? returns false > > > > I think the "hidden" inputs to authoriz

[Rails] Re: Help with gestalt of Pundit's authorize, please

2017-07-17 Thread Ralph Shnelvar
While I'm at it ... In authorize(@post) WHAT is being "authorize-d"? The @post ? The current_user ? The controller action ? Something else ? Ralph On Monday, July 17, 2017 at 1:02:11 AM UTC-6, Ralph Shnelvar wrote: > > The best explanation I have found for the gestalt of Pundit is > ht

[Rails] Re: help me . have to do a project in less span of time

2017-02-01 Thread kranthi ramireddy
i can combine but it is possible with the similar kind of projects. are there any similar kind of projects on github?( that u know ) On Wednesday, February 1, 2017 at 5:48:29 PM UTC+5:30, kranthi ramireddy wrote: > > THE ACTUAL PROJECT IMPLEMENTATION: The project implementation will be done > w

[Rails] Re: help me . have to do a project in less span of time

2017-02-01 Thread Joe Guerra
You should fork an existing project(s) from github, and combine them. On Wednesday, February 1, 2017 at 7:18:29 AM UTC-5, kranthi ramireddy wrote: > > THE ACTUAL PROJECT IMPLEMENTATION: The project implementation will be done > with all necessary features included along with security aspects.

[Rails] Re: help: NoMethodError: undefined method `set' for main:Object during cap deploy

2015-12-22 Thread tom
spot on - thx On Tue, Dec 22, 2015 at 2:13 PM, tom wrote: > NoMethodError: undefined method `set' for main:Object > > > /apps/app_a/production/releases/20151222191024/config/environments/production.rb:2:in > > > > >>production.rb > > set :sidekiq_role, :app > set :sidekiq_config, "#{current_pat

[Rails] Re: Help - using getting started with rails guide.

2015-11-17 Thread bhcoding83
In your text editor use the - save as - command then save the new.html.erb filename into the articles folder. On Friday, September 19, 2014 at 10:55:54 PM UTC-4, Aspiring.Student.programmer wrote: > > Hey guys > > I am using the getting started with rails guide and i am stuck at a > certain p

[Rails] Re: [Help] Need help with first_or_create. Never finds existing Record

2015-11-02 Thread Frederick Cheung
On Friday, October 30, 2015 at 9:40:08 PM UTC, Ruby-Forum.com User wrote: > > I have a problem with a form that either updates or creates depending on > whether the "project" exists already. > > How do you want to determine whether the project exists or not? > Im using the def create > > de

Re: [Rails] Re: Help regarding installation of Gems

2015-09-28 Thread Colin Law
On 28 September 2015 at 11:32, Peter Williams wrote: > > There are 2 problems: > > Even though installing ruby seems possible without source files (eg ruby.h) > using eg rvm, ruby-install etc, subsequently installing rails as a gem > requires these files. To avoid version mismatch with the version

Re: [Rails] Re: Help regarding installation of Gems

2015-09-28 Thread Peter Williams
There are 2 problems: 1. Even though installing ruby seems possible without source files (eg ruby.h) using eg rvm, ruby-install etc, subsequently installing rails as a gem requires these files. To avoid version mismatch with the versions from your os (package manager eg yum, yast,

Re: [Rails] Re: Help regarding installation of Gems

2015-09-27 Thread Erik Miranda
I thought I would just chime in to say that I was (seemingly) having the same problem as described by Prasanna, and the "sledgehammer" approach described by Colin has solved it for me. The first time I had tried installing rails, I was following the guide on https://gorails.com/setup/ubuntu/14.

Re: [Rails] Re: Help regarding installation of Gems

2015-09-22 Thread Colin Law
On 22 September 2015 at 11:28, Prasanna Moharana wrote: > Hello @colin ..Though i know there are some issue in resolving installation > .so can you please prefer me any video tutorial link that will be more > fruitful for me..cause am a begineer so i dont want to take any risk..so > please help me

Re: [Rails] Re: Help regarding installation of Gems

2015-09-22 Thread Prasanna Moharana
Hello @colin ..Though i know there are some issue in resolving installation .so can you please prefer me any video tutorial link that will be more fruitful for me..cause am a begineer so i dont want to take any risk..so please help me..Thanks On Monday, September 21, 2015 at 3:15:10 AM UTC-7, C

Re: [Rails] Re: Help regarding installation of Gems

2015-09-21 Thread Colin Law
On 21 September 2015 at 11:02, Norbert Melzer wrote: > Sorry, that answer was to the wrong mail, because of some flaws of Google's > inbox mailclient. > > In fact he only checked for libxml2, not for libxml2-dev as far as I > understand ops answer. In his post of 18th Sept >Though @coli u had tol

Re: [Rails] Re: Help regarding installation of Gems

2015-09-21 Thread Norbert Melzer
Sorry, that answer was to the wrong mail, because of some flaws of Google's inbox mailclient. In fact he only checked for libxml2, not for libxml2-dev as far as I understand ops answer. Colin Law schrieb am Mo., 21.09.2015, 10:49: > On 21 September 2015 at 09:36, Norbert Melzer wrote: > > Plea

Re: [Rails] Re: Help regarding installation of Gems

2015-09-21 Thread Colin Law
On 21 September 2015 at 09:36, Norbert Melzer wrote: > Please make sure you have also installed libxml2-dev, notice the suffix! I believe that has already been checked earlier in the thread. Colin > > > Colin Law schrieb am Mo., 21.09.2015, 10:20: >> >> On 20 September 2015 at 20:37, Prasanna

Re: [Rails] Re: Help regarding installation of Gems

2015-09-21 Thread Norbert Melzer
Please make sure you have also installed libxml2-dev, notice the suffix! Colin Law schrieb am Mo., 21.09.2015, 10:20: > On 20 September 2015 at 20:37, Prasanna Moharana > wrote: > > > > Hello colin as u told me to send some data relavant to your command let > me give a Result of command that i

Re: [Rails] Re: Help regarding installation of Gems

2015-09-21 Thread Colin Law
On 20 September 2015 at 20:37, Prasanna Moharana wrote: > > Hello colin as u told me to send some data relavant to your command let me > give a Result of command that i tried > > prasanna@prasanna-HP-Pavilion-dv6-Notebook-PC:~$ gem -v > 2.4.8 > > prasanna@prasanna-HP-Pavilion-dv6-Notebook-PC:~$ w

[Rails] Re: Help regarding installation of Gems

2015-09-20 Thread Prasanna Moharana
Hello colin as u told me to send some data relavant to your command let me give a Result of command that i tried prasanna@prasanna-HP-Pavilion-dv6-Notebook-PC:~$ gem -v 2.4.8 prasanna@prasanna-HP-Pavilion-dv6-Notebook-PC:~$ which gem /home/prasanna/.rvm/rubies/ruby-2.2.3/bin/gem prasanna@prasan

Re: [Rails] Re: Help regarding installation of Gems

2015-09-19 Thread Colin Law
On 19 September 2015 at 13:36, Colin Law wrote: > On 19 September 2015 at 11:58, Prasanna Moharana > wrote: >> >> Hello @colin when i tried to ru gem install nokogiri -v '1.6.6.2' -- >> --use-system-libraries --with-xml2-include=/usr/include/libxml2 >> --with-xml2-lib=/usr/lib >> command with ou

Re: [Rails] Re: Help regarding installation of Gems

2015-09-19 Thread Colin Law
On 19 September 2015 at 11:58, Prasanna Moharana wrote: > Hello @colin when i tried to ru gem install nokogiri -v '1.6.6.2' -- > --use-system-libraries --with-xml2-include=/usr/include/libxml2 > --with-xml2-lib=/usr/lib > command with out using Sudo i got this message-Error installing nokogiri:

[Rails] Re: Help regarding installation of Gems

2015-09-19 Thread Prasanna Moharana
Hello @colin when i tried to ru gem install nokogiri -v '1.6.6.2' -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib command with out using Sudo i got this message-Error installing nokogiri: ERROR: Failed to build gem native extension. Its kind of er

Re: [Rails] Re: Help regarding installation of Gems

2015-09-18 Thread Colin Law
On 18 September 2015 at 23:02, Prasanna Moharana wrote: > Hello sorry @colin .i am a new one to this forum as well as ruby so if any > mistake made by me then i am sorry. > well the output of $ apt-cache policy gcc is > gcc: > Installed: 4:4.8.2-1ubuntu6 > Candidate: 4:4.8.2-1ubuntu6 > Vers

[Rails] Re: Help regarding installation of Gems

2015-09-18 Thread Prasanna Moharana
Hello sorry @colin .i am a new one to this forum as well as ruby so if any mistake made by me then i am sorry. well the output of $ apt-cache policy gcc is gcc: Installed: 4:4.8.2-1ubuntu6 Candidate: 4:4.8.2-1ubuntu6 Version table: *** 4:4.8.2-1ubuntu6 0 500 http://in.archive.ubuntu

Re: [Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Colin Law
On 14 September 2015 at 14:21, Prasanna Moharana wrote: > > > ok please have a look - Please post your reply inline in the previous message as I have asked multiple times. If you want me to help then do this. Please also read more carefully what I am asking for. I asked for the command and out

[Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Prasanna Moharana
ok please have a look - prasanna@prasanna-HP-Pavilion-dv6-Notebook-PC:~/rubyinstaller$ sudo apt-get install ruby-dev zlib1g-dev Reading package lists... Done Building dependency tree Reading state information... Done ruby-dev is already the newest version. zlib1g-dev is already the newest

Re: [Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Colin Law
On 14 September 2015 at 13:55, Prasanna Moharana wrote: > > So i think if mkmf file issue will sort out then everything will goes > well..so can you help me to how could mkmf file issue resolve? As I suggested previously please reply with your message after the relevant bits of the one you are r

[Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Prasanna Moharana
So i think if mkmf file issue will sort out then everything will goes well..so can you help me to how could mkmf file issue resolve? please send me some of the commands that can be helpful. i have tried out sudo apt-get install libmagickwand-dev gem update --system sudo apt-get install ruby-dev

Re: [Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Colin Law
On 14 September 2015 at 12:29, Prasanna Moharana wrote: > > well when i was trying to run sudo apt-get install mkmf > it showing me Reading package lists... Done > Building dependency tree > Reading state information... Done > E: Unable to locate package mkmf mkmf is not a package to install. T

Re: [Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Colin Law
On 14 September 2015 at 12:15, Prasanna Moharana wrote: > Everything seems ok in RVM it shows me- Checking requirements for ubuntu. > Requirements installation successful. > But issue in Rails installation pls see the above picture and help me... It would help me if you could insert your reply a

[Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Prasanna Moharana
well when i was trying to run sudo apt-get install mkmf it showing me Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mkmf cause i know there are issue in mkmf files. so when i tried to run build essential -. by putting

Re: [Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Prasanna Moharana
Everything seems ok in RVM it shows me- Checking requirements for ubuntu. Requirements installation successful. But issue in Rails installation pls see the above picture and help me... On Monday, September 14, 2015 at 4:40:58 PM UTC+5:30, Colin Law wrote: > > On 14 September 2015 at 11:56, Prasan

Re: [Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Colin Law
On 14 September 2015 at 11:56, Prasanna Moharana wrote: > > Hello am using Ubuntu 14.04,and i have prefer this > > http://blog.coolaj86.com/articles/installing-ruby-on-ubuntu-12-04.html > so please help me how to tackle this. That looks ok. What does the command rvm requirements show? Colin

[Rails] Re: Help regarding installation of Gems

2015-09-14 Thread Prasanna Moharana
Hello am using Ubuntu 14.04,and i have prefer this http://blog.coolaj86.com/articles/installing-ruby-on-ubuntu-12-04.html so please help me how to tackle this. On Monday, September 14, 2015 at 3:34:22 PM UTC+5:30, Prasanna Moharana wrote: > > >

Re: [Rails] Re: HELP

2015-07-14 Thread Colin Law
On 13 July 2015 at 22:47, StepaAr wrote: > > Of course.It will be 8th time to code he's twitter again > > The problem for me is simple. > I have this emails: > > j...@gmail.com, a...@gmal89.com, ste...@yahoo.com, m...@yahoo.com and the all > have some message (example): like a flower > > The seco

Re: [Rails] Re: HELP

2015-07-13 Thread StepaAr
Of course.It will be 8th time to code he's twitter again The problem for me is simple. I have this emails: j...@gmail.com, a...@gmal89.com, ste...@yahoo.com, m...@yahoo.com and the all hav

Re: [Rails] Re: HELP

2015-07-13 Thread Colin Law
On 13 July 2015 at 21:28, StepaAr wrote: > I think it's time for rebooting. > > I will watch M. Hartl tutorial again (8th time). Don't just watch it, work right through it, entering all the code, getting it working and doing the exercises. Colin -- You received this message because you are su

[Rails] Re: HELP

2015-07-13 Thread StepaAr
I think it's time for rebooting. I will watch M. Hartl tutorial again (8th time). On Wednesday morning i will start again but this time from scratch . On Sunday, July 12, 2015 at 11:46:03 AM UTC+2, Ruby-Forum.com User wrote: > > Hi Stepa, > > Have you generated active record model? What contro

[Rails] Re: HELP

2015-07-12 Thread Taras Matsyk
Hi Stepa, Have you generated active record model? What controller are you using and how does it look like? In general, You have to send a put request to your controller and pass all data you want to save or you have (depending on behaviour you are trying to achieve). Then you will be using Act

Re: [Rails] Re: HELP

2015-07-09 Thread Colin Law
On 9 July 2015 at 20:07, StepaAr wrote: > > I'm putting every email into database.Those who are valid and those who aren't > I can't figure out the condition > > > Maybe i can't access database . I will make an assumption that i can't access > database. > I'm ready for any advise Are you gettin

[Rails] Re: HELP

2015-07-09 Thread StepaAr
I'm putting every email into database.Those who are valid and those who aren't I can't figure out the condition Maybe i can't access database . I will make an assumption that i can't access database. I'm ready for any advise I have no idea how to finished this task. I'm getting pissed with thi

[Rails] Re: HELP

2015-07-09 Thread Elizabeth McGurty
Do you have it installed? Do you know how to access it? On Thursday, July 9, 2015 at 9:33:13 AM UTC-4, StepaAr wrote: > > sqllite3.Standard for Rails > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and s

[Rails] Re: HELP

2015-07-09 Thread StepaAr
sqllite3.Standard for Rails On Wednesday, July 8, 2015 at 1:58:34 PM UTC+2, Elizabeth McGurty wrote: > > What database are you using? > >> >> -- 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

[Rails] Re: HELP

2015-07-08 Thread Elizabeth McGurty
What database are you using? > > -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, se

Re: [Rails] Re: HELP

2015-07-08 Thread Colin Law
On 8 July 2015 at 06:56, StepaAr wrote: > I know.I'm just angry because i can't figure out a solution You know what? Colin > > On Tuesday, July 7, 2015 at 9:57:24 PM UTC+2, Colin Law wrote: >> >> On 7 July 2015 at 20:35, StepaAr wrote: >> > I know for that course.That's how I have learned Rail

Re: [Rails] Re: HELP

2015-07-07 Thread StepaAr
I know.I'm just angry because i can't figure out a solution On Tuesday, July 7, 2015 at 9:57:24 PM UTC+2, Colin Law wrote: > > On 7 July 2015 at 20:35, StepaAr > > wrote: > > I know for that course.That's how I have learned Rails. > > Can you find what chapter in book is about database?How to

Re: [Rails] Re: HELP

2015-07-07 Thread Colin Law
On 7 July 2015 at 20:35, StepaAr wrote: > I know for that course.That's how I have learned Rails. > Can you find what chapter in book is about database?How to extract data? > Maybe i'm doing something wrong Have you really worked right through the tutorial? Virtually every chapter involves readi

Re: [Rails] Re: HELP

2015-07-07 Thread StepaAr
I know for that course.That's how I have learned Rails. Can you find what chapter in book is about database?How to extract data? Maybe i'm doing something wrong On Tuesday, July 7, 2015 at 9:56:52 AM UTC+2, Colin Law wrote: > > On 6 July 2015 at 22:41, StepaAr > > wrote: > > > > I know it's d

[Rails] Re: HELP

2015-07-07 Thread StepaAr
The picture is mock-up. I can't put data in database.Only valid emails goes to database but but I'm putting all e-mails in the database (valid and not valid) On Tuesday, July 7, 2015 at 4:35:15 PM UTC+2, Elizabeth McGurty wrote: > > Regarding: > > How can i memorised valid email to my databas

[Rails] Re: HELP

2015-07-07 Thread Elizabeth McGurty
Regarding: How can i memorised valid email to my database ? Where should i write this code?I mean the file. And how to connect this to my html.haml page. Seems to me that you are working with an existing application, or is the image you presented some mock-up? If it is an existing application

Re: [Rails] Re: HELP

2015-07-07 Thread Colin Law
On 6 July 2015 at 22:41, StepaAr wrote: > > I know it's dam but i have been given task . > > If is up to me it will be totally different. > > > How can i memorised valid email to my database ? > Where should i write this code?I mean the file. > And how to connect this to my html.haml page. > > T

[Rails] Re: HELP

2015-07-06 Thread StepaAr
I know it's dam but i have been given task . If is up to me it will be totally different. How can i memorised valid email to my database ? Where should i write this code?I mean the file. And how to connect this to my html.haml page. This is the most complex task for me On Monday, July

[Rails] Re: HELP

2015-07-06 Thread Elizabeth McGurty
CORRECTION: On Monday, July 6, 2015 at 4:43:45 PM UTC-4, Elizabeth McGurty wrote: > > Working with incomplete information here... > > Single input, multiple values. I do not understand why? There are so > many resources available for you to permit users to enter multiple and > distinct emails

[Rails] Re: HELP

2015-07-06 Thread Elizabeth McGurty
Working with incomplete information here... Single input, multiple values. I do not understand why? There are so many resources available for you to permit users to enter multiple and distinct emails values. The following is crude, but I think that it may be helpful Well as far as I know

[Rails] Re: HELP

2015-07-06 Thread StepaAr
theoretically unlimited example picture On Monday, July 6, 2015 at 9:46:22 PM UTC+2, Elizabeth McGurty wrote: > > Predictably how many? > > > On Monday, July 6, 2015 at 3:04:57 PM UTC-4, St

[Rails] Re: HELP

2015-07-06 Thread Elizabeth McGurty
Predictably how many? On Monday, July 6, 2015 at 3:04:57 PM UTC-4, StepaAr wrote: > > yes. > > > > On Monday, July 6, 2015 at 7:46:57 PM UTC+2, Elizabeth McGurty wrote: >> >> Before I respond, are you saying that in a single input you are gathering >> multiple email addresses? >> >> >> On Monday

[Rails] Re: HELP

2015-07-06 Thread StepaAr
yes. On Monday, July 6, 2015 at 7:46:57 PM UTC+2, Elizabeth McGurty wrote: > > Before I respond, are you saying that in a single input you are gathering > multiple email addresses? > > > On Monday, July 6, 2015 at 11:58:39 AM UTC-4, StepaAr wrote: >> >> I have a couple questions. >> >> 1) I hav

[Rails] Re: HELP

2015-07-06 Thread Elizabeth McGurty
Before I respond, are you saying that in a single input you are gathering multiple email addresses? On Monday, July 6, 2015 at 11:58:39 AM UTC-4, StepaAr wrote: > > I have a couple questions. > > 1) I have a couple of emails.They are separated between buy comma or > space.How to find which on

[Rails] Re: Help with nokogiri

2015-06-03 Thread Gm
Well, I managed to this: doc = Nokogiri::HTML::DocumentFragment.parse(string) doc.css('img').map { |i| i.set_attribute(:src, "http://www.blabla.com";) } p doc.to_s On Wednesday, June 3, 2015 at 9:44:00 AM UTC-3, Gm wrote: > > I'm trying to work with nokogiri but I have some problems

[Rails] Re: Help getting started

2015-04-22 Thread TC R.
Tried just 'gem install json" as well. Still same error messages. Not sure what to do since I get the same error messages when trying to install/bundle. Anyone else seen anything similar? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Re: Help getting started

2015-04-21 Thread TC R.
I get a basically identical error message. -- 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 rubyonrails-talk+un

[Rails] Re: Help getting started

2015-04-20 Thread Jerry Chen
try this one : gem install json -v '1.8.2' 在 2015年4月21日星期二 UTC+8上午10:40:11,Ruby-Forum.com User写道: > > Running windows 8. Uninstalled older version of rails and installed the > most recent version using railsinstaller. Also installed DevKit. When I > do a bundle install, however, I get the follow

Re: [Rails] Re: Help with habtm

2015-03-26 Thread Colin Law
On 26 March 2015 at 20:38, Gm wrote: > Hi Colin, > > Thanks for the reply. > > Even if I use has many through, how can I populate the order field > dinamically ? > When I do this: > >def generate > (1..5).each do > questions.create(Question::SKELETON) > end >end Possi

[Rails] Re: Help with habtm

2015-03-26 Thread Gm
Hi Colin, Thanks for the reply. Even if I use has many through, how can I populate the order field dinamically ? When I do this: def generate (1..5).each do questions.create(Question::SKELETON) end end Thank you. On Tuesday, March 24, 2015 at 3:50:37 PM UTC-3, Gm w

[Rails] Re: Help with this error

2015-03-24 Thread Frederick Cheung
On Tuesday, March 24, 2015 at 10:26:00 AM UTC, Rails_beginner wrote: > > = render partial: 'admin/delayed_jobs/list_header' > -@jobs.each do |job| >= link_to job.id, job > > This will try to call delayed_backend_active_record_job_path in order to turn the job object into the path (by default

Re: [Rails] Re: Help! Haml::SyntaxError in Posts#show

2015-03-23 Thread Emmanuel Abia
Try this... %h2.comment_count= pluralize(@post.comments.count, "Comment") > - @comments.each do |comment| .comment > %p.username= comment.user.name > %p.username= comment.content > > = render 'comments/form' .comment seems to be a class selector move it to th

[Rails] Re: Help! Haml::SyntaxError in Posts#show

2015-03-23 Thread Frederick Cheung
On Monday, March 23, 2015 at 4:04:44 AM UTC, Ruby-Forum.com User wrote: > Ok, so I'm challenging myself to actually learn ruby/rails, I'm > currently doing the 12 on 12 challenge by mackenzie childs, i'm doing > the Muze app. I'm trying to add a comment section to the post section of > the site but

[Rails] Re: Help with small rails app

2014-10-22 Thread Dominic Monaco
Fixed it, needed to save it added @location = Location.create(location_params) to create controller -- 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 rubyo

[Rails] Re: Help with small rails app

2014-10-21 Thread Dominic Monaco
Ok so I figured out what I did wrong sorta, the way the call was being made didnt work so I did this def create @shops = [] @client = GooglePlaces::Client.new('AIzaSyCC5Dyjn5_gGSKZMVJqF6tKOYOaxgUMJ8s') @shops = @client.spots_by_query('coffee near ' + @location.address) end now my

[Rails] Re: Help with ckeditor image upload

2014-08-26 Thread frocco
I won't hold my breath. :-) On Tuesday, August 26, 2014 8:42:48 AM UTC-4, Alexander Trust wrote: > > Now you have an argument to tell your boss he or she should buy a Mac for > you. :) > > On Tuesday, August 26, 2014 2:17:18 PM UTC+2, frocco wrote: >> >> I tried my rails app last night on my mac

[Rails] Re: Help with ckeditor image upload

2014-08-26 Thread Alexander Trust
Now you have an argument to tell your boss he or she should buy a Mac for you. :) On Tuesday, August 26, 2014 2:17:18 PM UTC+2, frocco wrote: > > I tried my rails app last night on my mac and it works fine. >> >> Today at work on my windows 7, it fails with [paperclip] Content Type > Spoof: File

[Rails] Re: Help with ckeditor image upload

2014-08-26 Thread frocco
> > I tried my rails app last night on my mac and it works fine. > > Today at work on my windows 7, it fails with [paperclip] Content Type Spoof: Filename cartoon_tire.jpg If I drop down to version 3 of paperclip, it works. -- You received this message because you are subscribed to the Google

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Alexander Trust
I looked into the source of the ckeditor gem (cf. https://github.com/galetahub/ckeditor) and read a bit in its documentation today... I would say Rails acts nearly in the same manner as php would. You integrate the JS, you create a view with a form and add the corresponding classes to it. Tha

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Frank R.
I can see your points as outlined and thanks for the advise. Since I am learning Rails, I am coming from a PHP background where I am using ckeditor and have no issues with uploading files. I am used to just telling PHP where the javascript files are and adding the necessary javascript to my form

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Frank R.
Jason, Does tinymce-rails have an image upload built-in? If now, what other gem is needed to do this? Thanks -- 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

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Frank R.
Thank you, not sure if ckeditor is the best for rails development. I also have LiveEditor from www.innovastudio.com, but cannot figure out how to use it in Rails. I use it in PHP and it is great. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Alexander Trust
I have to admit, that I'm as well very new to Rails. :) I have not yet installed paperclip nor ckeditor but I'm working on an app on my own and your "case" seemed interesting to me because I also want to add an editor for editorial purposes writing and maintaining blog posts. Hence I made a bit

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Frank R.
I had to use version 3.5.3 I am learning Rails, so this has been a nightmare for me coming from PHP. Regarding your example for Paperclip.options, I do not know where I would wright that code. Do you have version 4.1 working? Thanks -- Posted via http://www.ruby-forum.com/. -- You receive

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread Alexander Trust
Which version of Paperclip do you use? There was a security issue with file types hence they changed the behaviour in version 4.0 of paperclip, but of course there was an error in 4.0 concerning content type mapping. In 4.1 they introduced a possibility to add options like so: Paperclip.options

[Rails] Re: Help with ckeditor image upload

2014-08-25 Thread frocco
> > I found the answer. > > Had to use https://github.com/rmagick/rmagick/wiki/Installing-on-Windows then set gem to gem "paperclip", "~> 3.5.3" -- 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

[Rails] Re: Help with ckeditor image upload

2014-08-24 Thread frocco
If I cannot get this resolved, what editor do most use that allows users to upload and embed images? Tinymce? On Friday, August 22, 2014 11:18:44 AM UTC-4, Ruby-Forum.com User wrote: > > Hello, > > I am learning rails and trying to use ckeditor and paperclip. > When I try and upload an image fi

Re: [Rails] Re: HELP Installing older versions of rails on OSX?

2014-07-15 Thread Hassan Schroeder
On Tue, Jul 15, 2014 at 2:17 PM, Jeff Lockyer wrote: > So with this, could I confidently install Rails 1.1.6 and Ruby 1.8.6 ? Yes. I just did a test install of those on an MBA running Mavericks. > rvm install ruby-1.8.6 > rvm use ruby-1.8.6 > gem install rake -v '0.8.7' # just a random old versi

[Rails] Re: HELP Installing older versions of rails on OSX?

2014-07-15 Thread Jeff Lockyer
So with this, could I confidently install Rails 1.1.6 and Ruby 1.8.6 ? Because thus far, attempting to get these two in line is turning out to be a real headache... :( -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

Re: [Rails] Re: Help on specifying color using color code

2014-07-09 Thread Colin Law
On 9 July 2014 07:36, Maitreya Dwaipayan wrote: > Newb Newb writes: >> >> Hi All, >> >> In my application i am using Spreadsheet::Excel gem for export to excel. >> >> Kindly let me know your suggestions. >> >> Thanks for your time. > > > Check this out - http://andisxp.blogspot.in/2011/12/export-

[Rails] Re: Help on specifying color using color code

2014-07-08 Thread Maitreya Dwaipayan
Newb Newb writes: > > Hi All, > > In my application i am using Spreadsheet::Excel gem for export to excel. > > Kindly let me know your suggestions. > > Thanks for your time. Check this out - http://andisxp.blogspot.in/2011/12/export-to-excel-with- spreadsheet-gem.html -- You received this

[Rails] Re: help in updating the code " Head First Ruby on Rails"

2014-03-18 Thread Małgorzata Bąk
Thank You for response. MB -- 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 rubyonrails-talk+unsubscr...@google

[Rails] Re: help in updating the code " Head First Ruby on Rails"

2014-03-18 Thread Gustavo Caso
El martes, 11 de marzo de 2014 14:18:26 UTC+1, Ruby-Forum.com User escribió: > > I would like understood routes, scaffolding etc. "Head First Ruby on > Rails" has a very old Rails. I am working with Rails 4. On 93 page "Head > First Ruby on Rails"/polish edition/Helion 2010 > there is: > Acti

[Rails] Re: help in updating the code " Head First Ruby on Rails"

2014-03-11 Thread Małgorzata Bąk
thank you -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To po

[Rails] Re: Help with regex and tag

2014-02-28 Thread Guilherme
Yes sir. Thanks for the tip. This code makes the magic: doc = Nokogiri::HTML("test") doc.search("p") On Friday, February 28, 2014 11:07:53 AM UTC-3, Frederick Cheung wrote: > > > > On Friday, February 28, 2014 1:31:30 PM UTC, Guilherme wrote: >> >> Hi, >> >> I need to create a regex t

[Rails] Re: Help with regex and tag

2014-02-28 Thread Frederick Cheung
On Friday, February 28, 2014 1:31:30 PM UTC, Guilherme wrote: > > Hi, > > I need to create a regex to extract 4 paragraphs of a text: > > > Topic – > abc > > > > abcd > abcde > abcdef > abcdefg > > > I need to extract 4 paragraphs (text inside including some html > code) of this text using a

[Rails] Re: Help Installing rbenv?

2014-02-12 Thread johny why
Ok, i got rbenv installed, and Ruby using ruby-build. followed instructions here: https://github.com/sstephenson/rbenv#installation next, going to use gems to install sqlite and rails. not sure yet if the gems are tied to the active ruby (set by rbenv), but i'll find out! thx 4 help! -- Yo

[Rails] Re: Help Installing rbenv?

2014-02-12 Thread Robert Walker
John Weiss wrote in post #1136424: > http://s19.postimg.org/ss009x84z/term.png Did you also install ruby-build? rbenv does not come with the rbenv install command by default. rbenv itself is just a Ruby environment manager, and not an Ruby compile and install manage. That's what the ruby-build

[Rails] Re: Help with carrierwave.

2014-01-23 Thread Frederick Cheung
On Thursday, January 23, 2014 12:30:28 AM UTC+1, p val wrote: > Im new at this web-development world and im trying to learn ror: > i've been installing different gems but i recently added this one: > http://railscasts.com/episodes/253-carrierwave-file-uploads > > first thing i was lost a bit beco

  1   2   3   4   5   6   7   8   9   10   >