[Rails] Re: need help with whenever gem

2018-08-21 Thread tom
nevermind - i updated rvm to latest & latest ruby. all good now On Tue, Aug 21, 2018 at 9:59 AM tom wrote: > it used to work just fine until a few days ago. now i am getting: > > /home/railsuser/.rvm/gems/ruby-head/gems/bundler-1.16.4/lib/bundler/spec_set.rb:91:in > `block in materialize': Cou

Re: [Rails] Re: Need help for writing Api in Rails 5

2017-01-31 Thread Tushar Garg
Thanks bro for sharing this. I will check and implement it On Jan 31, 2017 9:28 PM, "Carlos Ramirez" wrote: > Hey Tushar, > > There are a lot of great resources online for creating APIs in Rails 5 > (with its new API-only mode). > > One of my favorites is called *Building the Perfect Rails 5 API

[Rails] Re: Need help for writing Api in Rails 5

2017-01-31 Thread Carlos Ramirez
Hey Tushar, There are a lot of great resources online for creating APIs in Rails 5 (with its new API-only mode). One of my favorites is called *Building the Perfect Rails 5 API Only App* by Kam Low (which I wrote about

[Rails] Re: Need help for writing Api in Rails 5

2017-01-28 Thread Tushar Garg
On Saturday, January 28, 2017 at 7:57:03 PM UTC+5:30, Tushar Garg wrote: > > Hi All, > > I am new to rails. > I want to write restful api's in rails. I start following the "API on > Rails" book. > By following that book, I come to know that there are lot of things are > depreciated in rspec, I

Re: [Rails] Re: need help with devise / async >> ArgumentError (wrong number of arguments (given 3, expected 1..2)):

2016-12-06 Thread tom
great - so i would drop that function into the user-model? thx On Tue, Dec 6, 2016 at 11:54 AM, Jerry Clinesmith wrote: > devise_async doesn't support Devise 4: https://github.com/mhfs/ > devise-async/issues/94 > > Good news, you don't really need it, Devise has a fix to integrate with > Acti

[Rails] Re: need help with devise / async >> ArgumentError (wrong number of arguments (given 3, expected 1..2)):

2016-12-06 Thread Jerry Clinesmith
devise_async doesn't support Devise 4: https://github.com/mhfs/devise-async/issues/94 Good news, you don't really need it, Devise has a fix to integrate with ActiveJob so you can remove the async gem and change your Devise model: https://github.com/plataformatec/devise#activejob-integration O

Re: [Rails] Re: need help with devise / async >> ArgumentError (wrong number of arguments (given 3, expected 1..2)):

2016-12-06 Thread Colin Law
On 6 December 2016 at 14:18, tom wrote: > anyone? > > thx > > > On Mon, Dec 5, 2016 at 11:18 AM, tom wrote: >> >> it all worked locally, and now i am in production and get that: >> >> >> ArgumentError (wrong number of arguments (given 3, expected 1..2)): >> devise-async (0.7.0) lib/devise/async

[Rails] Re: need help with devise / async >> ArgumentError (wrong number of arguments (given 3, expected 1..2)):

2016-12-06 Thread tom
anyone? thx On Mon, Dec 5, 2016 at 11:18 AM, tom wrote: > it all worked locally, and now i am in production and get that: > > > ArgumentError (wrong number of arguments (given 3, expected 1..2)): > devise-async (0.7.0) lib/devise/async/model.rb:27:in > `send_devise_notification' > devise (

[Rails] Re: Need help with creating a Sidekiq Job

2016-04-26 Thread David Williams
David Williams wrote in post #1183093: These lines of code are working orphans = SimpleHashtag::Hashtag.all.select {|h| h.hashtaggables.size == 0} orphans.map(&:destroy) But, in order for the perform method to fire off. You need an argument to go along with it. -- Posted via http://www.ruby-

Re: [Rails] Re: Need help upgrading to Rails 5

2015-12-30 Thread James Jelinek (shakycode)
Yeah you have to specify the version number prior to the “new” verb. I think this is especially important when you have multiple versions of the Rails gem installed on your system. > On Dec 30, 2015, at 11:15 AM, Dan Cromer wrote: > > I was able to fix this. The problem was that I did not g

[Rails] Re: Need help upgrading to Rails 5

2015-12-30 Thread Dan Cromer
I was able to fix this. The problem was that I did not generate my new rails project using the Rails 5 generator. Instead, when I did rails _5.0.0.beta1_ new myapp Everything worked On Wednesday, 30 December 2015 01:36:42 UTC-8, Dan Cromer wrote: > > I'm experiencing the same problem. I'm no

[Rails] Re: Need help upgrading to Rails 5

2015-12-30 Thread Dan Cromer
I'm experiencing the same problem. I'm not trying to upgrade an app, though, I'm only trying to play with a new rails app from the ground up, just to try out some of the new features. Have you been able to figure out what the problem is? On Wednesday, 23 December 2015 06:55:59 UTC-8, Johan And

[Rails] Re: Need help upgrading to Rails 5

2015-12-29 Thread raoul
Hi Johan, Depending on how you've configured your app, your app is probably suppressing detailed error messages through a config setting. Once you see what the exact error is, you can start to fix the actual cause. Send me an email, I've got some time today and tomorrow and can potentially hel

[Rails] Re: Need help for Nokogiri XML parser

2015-02-25 Thread Frederick Cheung
On Wednesday, February 25, 2015 at 9:40:39 AM UTC, bette...@gmail.com wrote: > > Hi, > > I am facing issue with the Nokogiri XML Parser: > > I am using the following code to parse: > > doc = Nokogiri::HTML.fragment(xml) > puts doc.to_xml > What is the input you're feeding it? if the input is mal

[Rails] Re: need help to code a blog archive on click month and year .it should display that months post

2015-02-06 Thread Frederick Cheung
On Friday, February 6, 2015 at 12:21:09 PM UTC, Ruby-Forum.com User wrote: > > can u help me understand this code > href='/blog?month=" + monthname[0..-6] + "&year=" + monthname[3..8] + > "'>" + date_value + " > > the numbers and all > This is the String#[] method http://www.ruby-doc.org/c

[Rails] Re: need help to code a blog archive on click month and year .it should display that months post

2015-02-06 Thread Sailatha K.
can u help me understand this code " + date_value + " the numbers and all -- 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

[Rails] Re: need help to code a blog archive on click month and year .it should display that months post

2015-02-06 Thread Frederick Cheung
On Friday, February 6, 2015 at 11:33:03 AM UTC, Ruby-Forum.com User wrote: > > My app/controllers/blog_controller.rb: > > To be honest, I don't think many people (certainly not me) want to read though a wall of code to work out which bits are relevant and which aren't. It's up to you as questi

[Rails] Re: need help to code a blog archive on click month and year .it should display that months post

2015-02-06 Thread Sailatha K.
My app/controllers/blog_controller.rb: class BlogController < ApplicationController require 'date' caches_page :index, :show def index if (params[:population_categories]) @blog_posts = BlogPost.live.where(:population_category_ids => params[:population_categories]).latest.pa

[Rails] Re: need help to code a blog archive on click month and year .it should display that months post

2015-02-06 Thread Frederick Cheung
On Friday, February 6, 2015 at 7:09:52 AM UTC, Ruby-Forum.com User wrote: > i am try to change existing code,i am not unserstanding code,it is > written for blog archive clicking on each month and year in right column > it should redirect to that clicked month.by the below code only few are > work

[Rails] Re: Need help for Resque job.

2014-08-17 Thread Bala Paranj
Have you looked at the resque-web interface? What do you see in the 'Statuses' tab? This article on 'How to Install and Configure Resque to Handle Background Jobs in Rails 4.1' http://www.rubyplus.com/articles/531 might help. On Thursday, August 14, 2014 3:11:02 AM UTC-7, bette...@gmail.com wro

[Rails] Re: Need help for Resque job.

2014-08-15 Thread javinto
Hi, Resque works with Redis. Why not use Redis to keep track of executed jobs? Jan Op donderdag 14 augustus 2014 12:11:02 UTC+2 schreef bette...@gmail.com: > > Hi Friends, > > I have a scenario where I am calling a resque jobs within the resque job > which is already initiated. > > The below me

Re: [Rails] Re: Need help -FATAL: database "catarse_development" does not exist

2014-02-18 Thread Colin Law
On 18 February 2014 12:11, Pop Pop wrote: > yes i want to rake db:create > and fix the Errer 'FATAL: database "catarse_development" does not exist > How i fix that I think that it was rake db:migrate that gave you that error, I think it unlikely that db:create also gave it. If it does then copy

[Rails] Re: Need help -FATAL: database "catarse_development" does not exist

2014-02-18 Thread Pop Pop
yes i want to rake db:create and fix the Errer 'FATAL: database "catarse_development" does not exist How i fix that -- 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 grou

[Rails] Re: Need help -FATAL: database "catarse_development" does not exist

2014-02-18 Thread Rick
you want to do: rake db:create On Tuesday, February 18, 2014 5:08:05 AM UTC-5, Ruby-Forum.com User wrote: > > Hi i try to do that createdb mytestdb > [root@localhost catarse]# createdb mytestdb > createdb: could not connect to database postgres: FATAL: role "root" > does not exist > give this

[Rails] Re: Need help -FATAL: database "catarse_development" does not exist

2014-02-18 Thread Pop Pop
Hi i try to do that createdb mytestdb [root@localhost catarse]# createdb mytestdb createdb: could not connect to database postgres: FATAL: role "root" does not exist give this Errer thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Re: need help deploying rails engine

2014-01-15 Thread jsnark
Problem solved. The namespaced paths generated by engine.path need to be modified by prefixing them with the applications base path. I use the apache RewriteRule for this: RewriteRule ^/engine/?(.*) /app/engine/$1 [R] -- You received this message because you are subscribed to the Google Group

Re: [Rails] Re: Need help putting together a rails workflow diagram

2013-05-31 Thread 3dd13
When u say u need a workflow diagram, I assume u are talking about the data flow or communication sequence So to help u solve this problem, one hint is u have to illustrate how the components talks to each other when there is a http request coming in For example, in the case of "user wants to cre

Re: [Rails] Re: Need help putting together a rails workflow diagram

2013-05-31 Thread Hassan Schroeder
On Fri, May 31, 2013 at 6:02 AM, Seth F. wrote: > I have a basic knowledge of all of them, but the main reason of this > task is to try and understand the logic of updating and maintaining the > system. Basically, I'm trying to complete a puzzle of how these work > together / in what way each of t

[Rails] Re: Need help putting together a rails workflow diagram

2013-05-31 Thread Seth F.
I have a basic knowledge of all of them, but the main reason of this task is to try and understand the logic of updating and maintaining the system. Basically, I'm trying to complete a puzzle of how these work together / in what way each of them reference eachother. Thanks for your help. -- P

Re: [Rails] Re: Need help on #grep

2013-05-13 Thread Javier Quarite
On Mon, May 13, 2013 at 2:03 PM, Javier Quarite wrote: > Try: > > ObjectSpace.each_object(Class).to_a.map(&:to_s).grep(/(stri)/i) > Sorry, no need of "to_a" :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this g

Re: [Rails] Re: Need help on #grep

2013-05-13 Thread Javier Quarite
Try: ObjectSpace.each_object(Class).to_a.map(&:to_s).grep(/(stri)/i) -- 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: Need help on #grep

2013-05-13 Thread Love U Ruby
I got only one: ObjectSpace.each_object(Class).map(&:name).grep(/stri/i) #=> ["String"] How to get all using regex,which has a substring `stri`? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

[Rails] Re: Need help on #grep

2013-05-13 Thread Robert Walker
Love U Ruby wrote in post #1108785: > I was trying to list the all the class names having the pattern `stri` > with the below: > > p ObjectSpace.each_object(Class).to_a.grep(/(stri)/i) #=> [] > > But not getting the output. So can anyone help me on the same? ObjectSpace.each_object(Class) is retur

Re: [Rails] Re: need help to install Nokogiri

2013-04-30 Thread Jordon Bedwell
On Mon, Apr 29, 2013 at 2:24 PM, Love U Ruby wrote: > kirti@kirti-Aspire-5733Z:~$ irb > 2.0.0p0 :001 > require 'nokogiri' > => true > 2.0.0p0 :002 > > Just to give you a heads up for next time: `curl -L https://get.rvm.io|bash -s head --ruby=2.0.0 --autolibs=enabled` would have installed every

[Rails] Re: need help to install Nokogiri

2013-04-29 Thread Love U Ruby
Finally i am done: kirti@kirti-Aspire-5733Z:~$ sudo apt-get install libxml2-dev libxslt1-dev Reading package lists... Done Building dependency tree Reading state information... Done libxml2-dev is already the newest version. libxslt1-dev is already the newest version. The following package was au

Re: [Rails] Re: need help to install Nokogiri

2013-04-29 Thread Colin Law
On 29 April 2013 18:08, Love U Ruby wrote: > Carlos Mathiasen wrote in post #1107144: >> Nokogiri is a gem, them you only need >> >> gem install nokogiri >> >> but first you need install this libraries for ubuntu[0]: >> >> sudo apt-get install libxml2 libxml2-dev libxslt libxslt-de > > Tried b

[Rails] Re: need help to install Nokogiri

2013-04-29 Thread Love U Ruby
Carlos Mathiasen wrote in post #1107144: > Nokogiri is a gem, them you only need > > gem install nokogiri > > but first you need install this libraries for ubuntu[0]: > > sudo apt-get install libxml2 libxml2-dev libxslt libxslt-de Tried but got error: kirti@kirti-Aspire-5733Z:~$ sudo apt-get

Re: [Rails] Re: need help to install Nokogiri

2013-04-29 Thread Colin Law
On 29 April 2013 05:47, Love U Ruby wrote: > Carlos Mathiasen wrote in post #1107144: >> Nokogiri is a gem, them you only need >> >> gem install nokogiri >> >> but first you need install this libraries for ubuntu[0]: >> >> sudo apt-get install libxml2 libxml2-dev libxslt libxslt-dev > > As I i

[Rails] Re: need help to install Nokogiri

2013-04-28 Thread Love U Ruby
Carlos Mathiasen wrote in post #1107144: > Nokogiri is a gem, them you only need > > gem install nokogiri > > but first you need install this libraries for ubuntu[0]: > > sudo apt-get install libxml2 libxml2-dev libxslt libxslt-dev As I installed Ruby using RVM, I thought I need to install eve

[Rails] Re: Need help even generating a new app

2013-01-17 Thread Robert Walker
Josh Aronoff wrote in post #1092595: > Ok cool... Ugh, this permissions thing is driving me nuts. Can I just > uninstall everything by deleting all the directories and re running the > ruby and rails instals using either homebrow or rvm? to be clear, I'm > only saying delete the ruby directory in m

[Rails] Re: Need help even generating a new app

2013-01-16 Thread Josh Aronoff
Ok cool... Ugh, this permissions thing is driving me nuts. Can I just uninstall everything by deleting all the directories and re running the ruby and rails instals using either homebrow or rvm? to be clear, I'm only saying delete the ruby directory in my Library. -- Posted via http://www.ruby

[Rails] Re: Need help understanding how to add and/remove objects within nested form / Rails Mentor Needed

2013-01-16 Thread Frederick Cheung
On Wednesday, January 16, 2013 8:49:52 AM UTC, RJD wrote: > > Hi, > > I posted this question on stackoverflow and figured I would post here as > well. > > http://stackoverflow.com/questions/14348974/need-help-understanding-how-to-add-and-remove-objects-within-nested-form > > I'm basically looki

Re: [Rails] Re: Need help even generating a new app

2013-01-15 Thread Johnneylee Rollins
Hey, This is because you installed rvm, which is my preference but I have no qualms about you using rbenv. For some reason the permissions on something in your rvm directory got changed. sudo chown -r $USER:/$USER $HOME/.rvm That will help there. I can help you continue to use rvm if you want. I

[Rails] Re: Need help even generating a new app

2013-01-14 Thread Josh Aronoff
OK I went the Homebrew route, after some googling and tried to update my 1.8.7 Ruby to 1.9.3 like you mentioned and I'm STILL running into a permissions thing with my Library and that Gems directory. After running $ gem install rails bundler unicorn pg I get this: Permission denied -

[Rails] Re: Need help even generating a new app

2013-01-14 Thread Josh Aronoff
Ok. got to Step 3: and then ran into this:: Installing yaml-0.1.4... BUILD FAILED Inspect or clean up the working tree at /var/folders/3r/hdtty71s32bd26yrzyq4m5lrgn/T/ruby-build.20130114234238.25080 Results logged to /var/folders/3r/hdtty71s32bd26yrzyq4m5lrgn/T/ruby-build.20130114

[Rails] Re: Need help even generating a new app

2013-01-14 Thread Josh Aronoff
thank you! I'll try this and let you know how it went!! Thanks for responding! -- 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 post to this group, send email to rubyonrails-talk@googlegroups.

[Rails] Re: Need help even generating a new app

2013-01-14 Thread Robert Walker
Robert Walker wrote in post #1092320: > Step 2: Install and configure rbenv and ruby-build using Homebrew. > > $ brew install rbenv > $ brew install ruby-build Oh! And, don't forget to set the newly installed Ruby as your default Ruby version: $ rbenv global 1.9.3-p237 or $ rbenv local 1.9.3-p

[Rails] Re: Need help even generating a new app

2013-01-14 Thread Robert Walker
Josh Aronoff wrote in post #1092274: > I'm having trouble even installing new rails apps. I get to the Bundle > run, and it errors on Json, here's what my error says. I'm new to ALL of > this, including Terminal commands, etc. Hope someone can help me out. > Runs the Bundler then I error out at

[Rails] Re: Need help fixing an error populating a select box in the insert page but works in the editpage

2012-11-18 Thread rubyrookie
Thanks I have it working now. On Saturday, November 17, 2012 9:26:54 AM UTC-8, Ruby Rooikie wrote: > > Two Models Country and Bank. The below form is used for insert and edit > page works fine . f.collection_select works fine for edit page but throws > error for insert page. I think error it is

[Rails] Re: Need help fixing an error populating a select box in the insert page but works in the editpage

2012-11-18 Thread rubyrookie
Yes I am setting it up. i got it to work. :) Thanks On Saturday, November 17, 2012 9:26:54 AM UTC-8, Ruby Rooikie wrote: > > Two Models Country and Bank. The below form is used for insert and edit > page works fine . f.collection_select works fine for edit page but throws > error for insert pag

Re: [Rails] Re: Need help to implement audio recording in rails application

2012-08-26 Thread Loganathan Sellapa
Yes, I know but currently I am looking forward to integrate Red5 server because I hope without some media servers, the application will not handle heavy traffic. I will look into HTML 5 once I get this done. regards, Loganathan ViewMe On Sun, Aug 26, 2012 at 3:48

Re: [Rails] Re: Need help to implement audio recording in rails application

2012-08-26 Thread Dheeraj Kumar
You could use a HTML5 solution with a Flash fallback, to be more future-ready. Dheeraj Kumar On Sunday 26 August 2012 at 3:42 PM, Loganathan Sellapa wrote: > Yes, but most of the media applications are still depends on Flash only. It > will take some sort of time to move on with HTML5. > >

Re: [Rails] Re: Need help to implement audio recording in rails application

2012-08-26 Thread Loganathan Sellapa
Yes, but most of the media applications are still depends on Flash only. It will take some sort of time to move on with HTML5. regards, Loganathan ViewMe On Sun, Aug 26, 2012 at 3:38 PM, Gintautas Šimkus wrote: > +1 for an interesting topic. But flash is going to

Re: [Rails] Re: Need help to implement audio recording in rails application

2012-08-26 Thread Gintautas Šimkus
+1 for an interesting topic. But flash is going to die out, so are there any HTML5 alternatives for the proposed solution? 2012/8/26 Loganathan Sellapa > Sure, I am still searching for the tutorial to integrate red5 with ROR, > yet I didn't find nice one,. > > regards, > Loganathan > ViewMe

Re: [Rails] Re: Need help to implement audio recording in rails application

2012-08-26 Thread Loganathan Sellapa
Sure, I am still searching for the tutorial to integrate red5 with ROR, yet I didn't find nice one,. regards, Loganathan ViewMe On Fri, Aug 24, 2012 at 10:48 PM, Timothy Bone wrote: > post it if you find more info. id also like to learn this functionality > > -

[Rails] Re: Need help to implement audio recording in rails application

2012-08-26 Thread Timothy Bone
> > post it if you find more info. id also like to learn this functionality -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send ema

[Rails] Re: Need help with routing problem

2012-02-23 Thread simpleton
Hi Ryan I've solved this. I had to remove the matched routes from the devise_for block and I had a get '/dashboard/index' on top of my routes file. Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email

[Rails] Re: Need help in copying public key for a new user to EC2

2011-12-09 Thread Frederick Cheung
On Dec 9, 11:48 pm, Geo Manickam wrote: > Need help for uploading a public key for a new EC2 (AMI) user to tmp > folder. Any help on this appreciated. > > Follow the stepshttp://aws.amazon.com/articles/1233i.e not able to > pass this step "Copy all the public key files that you generated to a >

[Rails] Re: Need help with WePay integration using oAuth

2011-12-08 Thread Adam M.
Qas Wm wrote in post #1008599: > Hi, > > I a trying to integrate WePay with oauth but I have next to nothing > experience with oauth and need help and guidance in completing this > task. > > Does anyone have any pointer or sample they can direct me to? Checkout the wepay-rails gem: https://github

[Rails] Re: need help with an awkard error

2011-06-07 Thread Jeweller
Thanks Colin and Fred,it works with<%= comment.commenter.name if comment.commenter %> I still don't understand why some of the commenters are nil, but I will take your advise and learn how to debug myself. Thanks very much!! On 6月7日, 下午7时28分, Colin Law wrote: > 2011/6/7 Jeweller : > > > Well, I

Re: [Rails] Re: need help with an awkard error

2011-06-07 Thread Colin Law
2011/6/7 Jeweller : > Well, I think Fred may be right. The path to my app contains some > Chinese, like "桌面". So I removed it to another directory, but there > came with a new error "undefined method `name' for nil:NilClass" > instead of the old one. As I asked previously, don't top post. Thanks.

[Rails] Re: need help with an awkard error

2011-06-07 Thread Jeweller
Well, I think Fred may be right. The path to my app contains some Chinese, like "桌面". So I removed it to another directory, but there came with a new error "undefined method `name' for nil:NilClass" instead of the old one. comment.commenter is a nilclass !!!but <%= comment.commenter %> it got

Re: [Rails] Re: need help with an awkard error

2011-06-07 Thread Colin Law
2011/6/7 Jeweller : Could you not top post please, insert your reply at appropriate points in the previous post, that makes it easier to follow the thread. > Sorry, I don't know how to test it. I'm new to Rails. Could you > specify it? > Or let's say if you want a user able to comment on micropos

[Rails] Re: need help with an awkard error

2011-06-07 Thread Jeweller
Sorry, I don't know how to test it. I'm new to Rails. Could you specify it? Or let's say if you want a user able to comment on microposts and also comments, what would you do? I just don't want to use "act_as_commentable" gem, because I'm trying to learn On 6月7日, 下午2时50分, Frederick Cheung wrote:

[Rails] Re: need help with an awkard error

2011-06-06 Thread Frederick Cheung
On Jun 7, 3:37 am, Jeweller wrote: > thanks ,Fred. > I still don't understand,because in the model I use the > "validates_presense_of :commenter" to make sure the commenter > won't be nil. > Here's the file I used to generate sample data. > > require 'faker' > def make_comments > Micropost.al

[Rails] Re: need help with an awkard error

2011-06-06 Thread Jeweller
thanks ,Fred. I still don't understand,because in the model I use the "validates_presense_of :commenter" to make sure the commenter won't be nil. Here's the file I used to generate sample data. require 'faker' def make_comments Micropost.all.each do |micropost| User.all(:limit => 2).each do

[Rails] Re: need help with an awkard error

2011-06-06 Thread Frederick Cheung
On Jun 6, 4:34 pm, Jeweller wrote: > > > so I placed this line in the home.html.erb  to test > <%= @feed_items.first.comments.first.commenter.name %> > it's worked! > > I'm very confused. I mean what's the difference between these two > ways?  And also the error message, it's very strange. becau

[Rails] Re: need help with oracle adapter

2011-04-12 Thread fAisAl
Thank you for you help Bryan, I am very satisfied by our answer. I will try to tell my host that to upgrade their environment. Thank for all who tried to help and also thanks for Fred for early answer. Cheers all, Faisal On Apr 10, 12:25 am, Bryan Crossland wrote: > On Sat, Apr 9, 2011 at 2:07

Re: [Rails] Re: need help with oracle adapter

2011-04-09 Thread Bryan Crossland
On Sat, Apr 9, 2011 at 2:07 AM, fAisAl wrote: > Thank you Fred for your suggestion. I might leave that at end when no > other available solutions. > > activerecord-oracle-adapter's last official version of Rails it worked with was Rails 2 (2.1 if I recall correctly). It was replaced years ago by

[Rails] Re: need help with oracle adapter

2011-04-09 Thread fAisAl
Thank you Fred for your suggestion. I might leave that at end when no other available solutions. Faisal On Apr 9, 3:44 pm, Frederick Cheung wrote: > On 9 Apr 2011, at 07:19, fAisAl wrote: > > > Thank you Fred, > > Yes I could have used that, but as a requirement from host, I must use > > the ol

Re: [Rails] Re: need help with oracle adapter

2011-04-08 Thread Frederick Cheung
On 9 Apr 2011, at 07:19, fAisAl wrote: > Thank you Fred, > Yes I could have used that, but as a requirement from host, I must use > the old adapter not the enhanced one. You'll probably need to use an older version of rails (ie 2.x) then Fred > > Cheers, > Faisal > > On Apr 9, 3:13 pm, Fred

[Rails] Re: need help with oracle adapter

2011-04-08 Thread fAisAl
Thank you Fred, Yes I could have used that, but as a requirement from host, I must use the old adapter not the enhanced one. Cheers, Faisal On Apr 9, 3:13 pm, Frederick Cheung wrote: > On 9 Apr 2011, at 03:11, fAisAl wrote: > > > Hi all, > > I have been struggling with this problem for a while.

[Rails] Re: Need help in changing data in production.

2011-04-08 Thread Peter
On Apr 8, 2:21 am, Marco Antonio Filho wrote: > > I do agree with you. But I read so many articles that state that the > migrations are supposed only to contain the structure of the tables, not > changes in the records. > I get confused sometimes too, but what helps me is to think about it this w

Re: [Rails] Re: Need help in changing data in production.

2011-04-08 Thread Marco Antonio Filho
On Thu, Apr 7, 2011 at 4:02 PM, Ar Chron wrote: > Marco Antonio Filho wrote in post #991464: > > Now comes the problem. I need to deploy these > > changes > > in the production servers. I already have the script to update the > > changes, > > but I don't know what is the conventional place to put

[Rails] Re: Need help in changing data in production.

2011-04-07 Thread Ar Chron
Marco Antonio Filho wrote in post #991464: > Now comes the problem. I need to deploy these > changes > in the production servers. I already have the script to update the > changes, > but I don't know what is the conventional place to put it. Not in the > migrations, I know. Why not a migration? S

Re: [Rails] Re: Need help not able to run rails server 2.1.0

2011-03-07 Thread Colin Law
On 7 March 2011 19:53, korssane korssane wrote: > Frederick Cheung wrote in post #986018: >> On 7 Mar 2011, at 03:57, korssane korssane wrote: >> >>> message : i even tried to force but no way >>> >>> app/controllers/application.rb:5: undefined method `init_gettex' for >>> ApplicationController:C

[Rails] Re: Need help not able to run rails server 2.1.0

2011-03-07 Thread korssane korssane
Frederick Cheung wrote in post #986018: > On 7 Mar 2011, at 03:57, korssane korssane wrote: > >> message : i even tried to force but no way >> >> app/controllers/application.rb:5: undefined method `init_gettex' for >> ApplicationController:Class > > That mostly sounds like someone has typoed init_

[Rails] Re: Need help not able to run rails server 2.1.0

2011-03-07 Thread korssane korssane
hi , thanks for the quick reply . 1) line 5 has the following : #init_gettex "text_domain" 2) /var/lib/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161: def call(*args, &block) evaluate_method(method, *args, &block) if should_run_callback?(*args) rescue Loca

[Rails] Re: Need help in Installing Rails 3.0.3

2011-02-02 Thread elitalon
It seems the problem is already solved, as noted in the external source: http://permalink.gmane.org/gmane.comp.lang.ruby.rails/264228 It was a network problem. On 2 feb, 05:35, Mirage2008 wrote: > Actually it wasn't trivial.  It helped me :0) > > After the RubyGem/Bundler update mess yesterday,

[Rails] Re: Need help in Installing Rails 3.0.3

2011-02-01 Thread Mirage2008
Actually it wasn't trivial. It helped me :0) After the RubyGem/Bundler update mess yesterday, I was afraid there was yet another problem with my set up. Turns out my Time Machine's 5 GHz network was insanely unstable and caused the error. If it weren't for your post, I would have spent hours sea

[Rails] Re: need help on rails route

2011-01-30 Thread justinbaker
Is it in [rails_root]/public/blog? I would recommend reading this http://codelikezell.com/deploying-wordpress-with-rails-on-passenger. It should be exactly what you're looking for. On Jan 29, 4:23 am, nicolas wrote: > Hi Everyone > > I have a site that it is up and running. Now i need to include

Re: [Rails] Re: Need help in Installing Rails 3.0.3

2011-01-25 Thread Norbert Melzer
I know that sounds trivial, and the thread is two weeks old, but are you sure you are connected to the Internet during that tests? It took me yesterday 2 hours to find that problem on my local staging environment. Due to configuration problems I could connect via ssh and remote control, but my netw

Re: [Rails] Re: Need help in Installing Rails 3.0.3

2011-01-09 Thread Hassan Schroeder
On Sun, Jan 9, 2011 at 4:28 PM, djangst wrote: > rubygems.org is (again) the definitive source: > > http://update.gemcutter.org/2010/02/20/rubygems-org-move-complete.html Ah, crap. Guess I missed that memo :-) Never mind, then, and sorry for the noise. -- Hassan Schroeder ---

[Rails] Re: Need help in Installing Rails 3.0.3

2011-01-09 Thread djangst
Hassan, rubygems.org is (again) the definitive source: http://update.gemcutter.org/2010/02/20/rubygems-org-move-complete.html gemcutter.org redirects to rubygems.org. On Jan 9, 7:01 pm, Hassan Schroeder wrote: > The reference to  rubygems.org is out of date. -- You received this message beca

[Rails] Re: Need help with Rails form creation

2010-12-14 Thread Marnen Laibow-Koser
moroshko wrote in post #968250: > I have the following models: > > Product: name, shop_id (foreign key) > Shop:name > > The associations are: > > Product: belongs_to :shop > Shop:has_many :products > > In the form that creates a new Product I have: > > <%= f.label(:sho

[Rails] Re: Need help with starting the server please

2010-11-09 Thread venkata reddy
You have to place def file in the system32 folder and also all of them shoud be of the same version.. go here: http://www.sqlite.org/download.html Scroll down to the Precompiled Binaries for Windows section and download the 1st and 3rd downloads - this will give you the three files. Then unzip the

Re: [Rails] Re: Need help on Dicom Image viewer

2010-09-11 Thread radhames brito
He had a path problem that was actually easy to solve and but he did convert the image ""I have created a Rails application based on this tutorial: http://dicom.rubyforge.org/tutorial1.html I'm trying to view a DICOM image. I was able to convert .dcm to .jpg. But, when I try to view the .jpg i

Re: [Rails] Re: Need help on Dicom Image viewer

2010-09-11 Thread radhames brito
someone got this converted to jpg and then displayed on a view search the mailing list On Fri, Sep 10, 2010 at 1:57 PM, Marnen Laibow-Koser wrote: > A Sarkar wrote: > > DICOM is the image output of an X-ray machine. X ray plates are > > things of past. Radiologists all over the world use DICOM i

[Rails] Re: Need help on Dicom Image viewer

2010-09-10 Thread Marnen Laibow-Koser
A Sarkar wrote: > DICOM is the image output of an X-ray machine. X ray plates are > things of past. Radiologists all over the world use DICOM images to > read an X-ray. They have special monitor through which they can view > the DICOM image. But the problem is that we cannot find a server > versio

[Rails] Re: Need help on Dicom Image viewer

2010-09-10 Thread A Sarkar
DICOM is the image output of an X-ray machine. X ray plates are things of past. Radiologists all over the world use DICOM images to read an X-ray. They have special monitor through which they can view the DICOM image. But the problem is that we cannot find a server version of DICOM image viewer th

[Rails] Re: need help with redirection

2010-09-09 Thread Frederick Cheung
On Sep 9, 8:15 am, Silver Spoon wrote: > I want to create an web application that will link up a student's > facebook, twitter and orkut accounts all under one shed. Its like > connecting all the students within a college, to login into the web > app, the userid will be the unique studentID prov

Re: [Rails] Re: Need help with model logic

2010-09-02 Thread Colin Law
On 2 September 2010 16:37, Charlie B99 wrote: Could you not top post please - insert your comments at the appropriate place in previous mail, it makes it easier to follow the thread, particularly for those that find this thread in the future. Thanks > Colin, thanks so much for all your input.  A

[Rails] Re: Need help with model logic

2010-09-02 Thread Charlie B99
Colin, thanks so much for all your input. As you can see, I'm just muddling my way through all this, and all of your comments are very helpful. I will go through them more when I get to the office... "remaining seats" = schedule.capacity - number of approved requests. So, if a schedule has a

[Rails] Re: need help installing Rails 3 on non-Intel Mac

2010-07-26 Thread AppleII717
"MacPorts is the Devil" About a month ago I succeeded in getting rails3 working on a G4 MacMini after upgrading to 10.5.8 from 10.4.?. There where problems and most of them revolved around MacPorts. I installed rubygems using MacPorts and dependencies w

Re: [Rails] Re: need help with validation, toggle, checkbox etc...

2010-07-01 Thread tom
ok thx On Wed, Jun 30, 2010 at 8:59 PM, Me wrote: > You need to add condition, where if a box is checked show div. > > On Jun 30, 7:11 pm, tom wrote: > > hi, > > im gettin lost with the subject. need some pointers: > > > > Usermodel: > > validates_presence_of :companyname, :if => :i

[Rails] Re: need help with validation, toggle, checkbox etc...

2010-06-30 Thread Me
You need to add condition, where if a box is checked show div. On Jun 30, 7:11 pm, tom wrote: > hi, > im gettin lost with the subject. need some pointers: > > Usermodel: >   validates_presence_of     :companyname,      :if => :is_company? > > <%= f.label "Are u representing a company?" %> > <%= f

[Rails] Re: Need Help

2010-05-19 Thread chewmanfoo
by far the easiest way to use rails with apache is to use passenger: http://www.modrails.com/ On May 19, 3:02 pm, Payah Bleh wrote: > I have this application installed on my computer > apache HTTP Server 2.2 > Ruby 1.8.7 > Gems > Rails > Mysql 5.1 > > in appache configuration file i made some cha

[Rails] Re: need help about gzip

2010-05-08 Thread Stephan Wehner
On May 8, 1:24 pm, nirosh wrote: > thanks for the reply. i have complete my rails app and hosted on > hostmonster. but i dono how to enable the gzip on my app.i checked my > hosted app  with yslow > That shows like this "Grade F on Compress components with gzip". any > idea about this. Looks li

[Rails] Re: need help about gzip

2010-05-08 Thread nirosh
thanks for the reply. i have complete my rails app and hosted on hostmonster. but i dono how to enable the gzip on my app.i checked my hosted app with yslow That shows like this "Grade F on Compress components with gzip". any idea about this. nirosh -- You received this message because you are s

[Rails] Re: need help about gzip

2010-05-08 Thread Frederick Cheung
On May 8, 8:18 pm, nirosh wrote: > i need the gzip plugin for rails app > any body help me. > You've posted 3 messages about this. You're not getting any answers because you're not telling us what you're trying to do. Fred > nirosh > > -- > You received this message because you are subscribed t

  1   2   3   >