[Rails] Re: mark multiple results

2012-09-20 Thread Werner
Thanks.. this is helpfull Greetings On Wednesday, September 19, 2012 6:09:48 PM UTC+2, Ruby-Forum.com User wrote: class User attr_accessor :id, :name def initialize(id, name) @id = id @name = name end end charlie = User.new(9, 'Charlie') fred = User.new(1,

[Rails] [ JOBS ] Ruby on Rails - Remote

2012-09-20 Thread Matt M
I am looking for Ruby on Rails developers to join a fast growing company that is based out of Portland, OR. The software stack Ruby on Rails, JavaScript, MySQL and Linux, and practice TDD; you’ll need to have experience with all of these. Any work on iPhone and Android apps is a plus!

[Rails] Source code of Fedena 2.3 is released to public

2012-09-20 Thread Unni Koroth
The latest version of Fedena - the opensource school management system is now available to public for free download. Official Blog post - http://projectfedena.org/blog/17-fedena-2-3-released Github - https://github.com/projectfedena/fedena Download instructions -

[Rails] Storing attributes and values dynamically to an hstore column

2012-09-20 Thread ni8mare
I want to store data in an hstore column but I want the user to input attribute dynamically. Like {x = y} is stored where user enters both x and y. how can I do that? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Storing attributes and values dynamically to an hstore column

2012-09-20 Thread iGbanam
I worked on a gem that allows you do just this a while ago. Once I find where the source is stashed, I'll post it up -- 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.

[Rails] Re: Storing attributes and values dynamically to an hstore column

2012-09-20 Thread ni8mare
Thanks On Thursday, 20 September 2012 14:47:24 UTC+5:30, iGbanam wrote: I worked on a gem that allows you do just this a while ago. Once I find where the source is stashed, I'll post it up -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Newbie question: Routing Issues since rails version update?

2012-09-20 Thread DDale
Hi there I wrote a small rails app for my university dept about a year or so ago to deal with mailing list generation and display of staff details and all was working fine up until last week when we did a version update. Im not someone who uses rails regularly and so Im a bit at a loss. The

Re: [Rails] Newbie question: Routing Issues since rails version update?

2012-09-20 Thread Franz Strebel
Can you show us the code from the method show from this controller? /export/cree/raid/htdocs/users/app/controllers/users_controller.rb:33:in `show' -- 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

Re: [Rails] Newbie question: Routing Issues since rails version update?

2012-09-20 Thread DDale
Here it is... the normal display index and show functionality still works fine. # GET /users/1 # GET /users/1.xml def show require 'curb' @user = User.find(params[:id]) if File.exist? /home/#{@user.Personal_Web}/public_html/userdetails.html #

[Rails] access controller's object attributes in view page

2012-09-20 Thread ruby rails
Hi, I am new to ROR and learning it. In my controller I have an admins record and I am passing that admin object to the admin's view page to get the name of the admin. But when I try to access the name it is showing error as undefined method `name' for :current_admin:Symbol.. Please help..

Re: [Rails] access controller's object attributes in view page

2012-09-20 Thread Rafi A
Hi, See my comments inline: Regards, Seeni Rafiyullah Khan A, srk...@apigee.com*In Every moment, thank God.* On Thu, Sep 20, 2012 at 4:15 PM, ruby rails li...@ruby-forum.com wrote: Hi, I am new to ROR and learning it. In my controller I have an admins record and I am passing that admin

[Rails] Re: access controller's object attributes in view page

2012-09-20 Thread ruby rails
Rafi A wrote in post #1076789: Hi, See my comments inline: Regards, Seeni Rafiyullah Khan A, srk...@apigee.com*In Every moment, thank God.* On Thu, Sep 20, 2012 at 4:15 PM, ruby rails li...@ruby-forum.com wrote: You are trying to get the admin name from the symbol :( and hence

[Rails] Re: require current_password to update user information

2012-09-20 Thread Avi
How is your user model look like ? On Monday, September 17, 2012 10:31:44 PM UTC+5:30, dasibre wrote: Rails newbie here, I have been stuck on this for two days and can't figure out why its not working. I want users to confirm/verify themselves by entering their current/old password before

Re: [Rails] Re: access controller's object attributes in view page

2012-09-20 Thread Rafi A
Regards, Seeni Rafiyullah Khan A, On Thu, Sep 20, 2012 at 4:36 PM, ruby rails li...@ruby-forum.com wrote: Rafi A wrote in post #1076789: Hi, See my comments inline: Regards, Seeni Rafiyullah Khan A, srk...@apigee.com*In Every moment, thank God.* On Thu, Sep 20, 2012 at

[Rails] Re: NoMethodError with rake db:migrate

2012-09-20 Thread Avi
On Tuesday, September 18, 2012 8:30:54 AM UTC+5:30, jose ramirez wrote: Hi! First of all, this is my first application on Rails, and i'm stuck at a migration. i created a demo app (the demo_app from michael hartl's tutorial) as usual: rails new demo_app, rails generate scaffold User

[Rails] Images to pdf

2012-09-20 Thread kiran cy
i converted pdf to images and the images back to pdf. While converting back to pdf the images are not in order for example if there are 14 images after the first image 10 image will come then 11,12,13,14 and then 2,3,4,5,6,7,8,9 What is the problem? -- Posted via http://www.ruby-forum.com/. --

Re: [Rails] Images to pdf

2012-09-20 Thread ANIKET KADAM
can you tell me how you converted Images to PDF, please tell i m new to rails On Thu, Sep 20, 2012 at 4:53 PM, kiran cy li...@ruby-forum.com wrote: i converted pdf to images and the images back to pdf. While converting back to pdf the images are not in order for example if there are 14 images

[Rails] Re: pg gem error

2012-09-20 Thread Federico Ruby
1.9.3, I fixed it... I had to rename a lib folder inside the .rvm directory, compile the gem separately and then re-rename the folder... -- 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

Re: [Rails] Images to pdf

2012-09-20 Thread Jim Ruther Nill
On Thu, Sep 20, 2012 at 9:28 PM, ANIKET KADAM aniketkadam1...@gmail.comwrote: can you tell me how you converted Images to PDF, please tell i m new to rails On Thu, Sep 20, 2012 at 4:53 PM, kiran cy li...@ruby-forum.com wrote: i converted pdf to images and the images back to pdf. While

Re: [Rails] Images to pdf

2012-09-20 Thread Jim Ruther Nill
On Thu, Sep 20, 2012 at 9:28 PM, ANIKET KADAM aniketkadam1...@gmail.comwrote: can you tell me how you converted Images to PDF, please tell i m new to rails you can use rmagick http://lmgtfy.com/?q=convert+pdf+to+image+rmagick On Thu, Sep 20, 2012 at 4:53 PM, kiran cy

Re: [Rails] Images to pdf

2012-09-20 Thread ANIKET KADAM
Thanks On Thu, Sep 20, 2012 at 5:08 PM, Jim Ruther Nill jvn...@gmail.com wrote: On Thu, Sep 20, 2012 at 9:28 PM, ANIKET KADAM aniketkadam1...@gmail.comwrote: can you tell me how you converted Images to PDF, please tell i m new to rails you can use rmagick

[Rails] Re: Images to pdf

2012-09-20 Thread kiran cy
ANIKET KADAM wrote in post #1076796: can you tell me how you converted Images to PDF, please tell i m new to rails require 'RMagick' images = Dir[/home/*.jpg] imglist = Magick::ImageList.new imglist.read(*images.natural_sort) imglist.write(converted.pdf) -- Posted via

[Rails] Re: Newbie question: Routing Issues since rails version update?

2012-09-20 Thread Frederick Cheung
On Thursday, September 20, 2012 11:13:54 AM UTC+1, DDale wrote: # You can have the root of your site routed with map.root -- just remember to delete public/index.html. map.root :controller = users I wonder if doing map.root and specifying only a controller (but not an action) does

[Rails] Ruby Developer required!

2012-09-20 Thread Fiona S.
We are seeking a Senior Ruby Developer to work in a London based tech start up, salary £30,000 - £55,000 dependant on experience. If you know of anyone who may be suitable or if you would like more info then please email me! -- Posted via http://www.ruby-forum.com/. -- You received this

Re: [Rails] Ruby Developer required!

2012-09-20 Thread Peter Hickman
For anyone to email you you would need to give them an email address. Or is that part of the application process :) -- 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

Re: [Rails] Re: Images to pdf

2012-09-20 Thread ANIKET KADAM
Thanks On Thu, Sep 20, 2012 at 5:14 PM, kiran cy li...@ruby-forum.com wrote: ANIKET KADAM wrote in post #1076796: can you tell me how you converted Images to PDF, please tell i m new to rails require 'RMagick' images = Dir[/home/*.jpg] imglist = Magick::ImageList.new

Re: [Rails] access controller's object attributes in view page

2012-09-20 Thread Hassan Schroeder
On Thu, Sep 20, 2012 at 3:45 AM, ruby rails li...@ruby-forum.com wrote: I am new to ROR and learning it. In my controller I have an admins record and I am passing that admin object to the admin's view page to get the name of the admin. But when I try to access the name it is showing error as

[Rails] Junior Ruby/Rails developer available for hire.

2012-09-20 Thread Agis A.
Hello all. I'm a junior Rails/Ruby developer seeking for a Rails position (remote or not). GitHub: http://github.com/Agis- I blog: http://agis.heroku.com Twitter: http://twitter.com/corestudiosnet If interested email me: corestudiosinc (at) gmail.com Cheers, Agis. -- You received this

[Rails] Re: pg gem error

2012-09-20 Thread chico
Instead of compiling it by hand, you specify the missing headers in the gem command: rvmsudo gem install pg -- --with-pg-lib=/usr/pgsql/lib/ --with-pg-config=/usr/pgsql/bin/pg_config If you need to bundle install pg (or other gem that uses it), you could use a bundle config file: bundle

[Rails] created_at field sometimes is nil

2012-09-20 Thread Enrico Pilotto
I have a strange issue on my Ruby on Rails app. SOMETIMES when a record is being created I get this error: A ActiveRecord::StatementInvalid occurred in conversations#create: Mysql2::Error: Column 'created_at' cannot be null: ... activerecord (3.2.8)

[Rails] adding a FCKeditor toolbar button

2012-09-20 Thread luca massimini
Hi, I'm trying to add a plugin, but it doesn't work! The button doesn't appear in the toolbar (the message is:unknown element). I've used tutorial like this one: http://www.kindblad.com/2008/09/07/fckeditor-2x-how-to-add-a-new-button-with-custom-javascript-to-the-toolbar/ I've tested it on a

[Rails] Re: pg gem error

2012-09-20 Thread Federico Ruby
My error wasn't related to any missing headers, pg was being linked with the wrong libraries. -- 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

[Rails] Re: pg gem error

2012-09-20 Thread Federico Ruby
This was my exact same problem: http://stackoverflow.com/questions/8814924/gem-install-pg-can-not-bind-to-libpq -- 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

[Rails] Re: Newbie question: Routing Issues since rails version update?

2012-09-20 Thread DDale
In the logs I am seeing this, could this be the key? (pardon the pun) DEPRECATION WARNING: Giving :session_key to SessionStore is deprecated, please use :key instead. (called from new at /usr/lib64/ruby/gem/1.8/gems/actionpack-2.3.14/lib/action_controlle/middleware_stack.rb:72) On Thursday,

[Rails] Re: Ruby Developer required!

2012-09-20 Thread Fiona S.
Ah, that is a very good point Peter, thanks! Although I do believe you can reply to me directly on the forum by clicking on my name. For future reference, anyone wishing to email me please use fi...@tlmsearch.com -- Posted via http://www.ruby-forum.com/. -- You received this message because

Re: [Rails] Re: Ruby Developer required!

2012-09-20 Thread Peter Hickman
Fiona This is not a forum. It is a mailing list that is echoed to a forum. The email address attached to your name is li...@ruby-forum.com. Which means all responses will be sent to the list for all to see. Peter -- You received this message because you are subscribed to the Google Groups Ruby

Re: [Rails] created_at field sometimes is nil

2012-09-20 Thread Colin Law
On 20 September 2012 14:22, Enrico Pilotto pio...@gmail.com wrote: I have a strange issue on my Ruby on Rails app. SOMETIMES when a record is being created I get this error: A ActiveRecord::StatementInvalid occurred in conversations#create: Mysql2::Error: Column 'created_at' cannot be null:

[Rails] Re: [JOBS] Ruby on Rails Hackers @LivingSocial - all levels - all locations and REMOTE

2012-09-20 Thread Mukesh yadav
Hi, I am interested in the given profile. Right now I am working on elseticsearch, and ror based application. I am also learning nods.js and backbone.js as side by side to implement on of my project. Regards, Mukesh On Thursday, September 13, 2012 7:25:26 PM UTC+5:30, kenpersel wrote: Work

[Rails] Re: Rails on windows

2012-09-20 Thread Mukesh yadav
Hi, I am interested in the given profile. Regards, Mukesh On Wednesday, September 19, 2012 8:08:49 AM UTC+5:30, lyosha wrote: man.. why does everything is so slow on developing on windows? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] New to Rails. Looking for some help

2012-09-20 Thread John B.
I have been working with Ruby on Rails for about a week. I am trying to figure out a problem. I have a small relational database. resources :client do resources :department do resources :task end end What I want is to be able to add tasks while looking a specific show of a department.

[Rails] Good books about the internals of Rails 3

2012-09-20 Thread Geoffrey Hug
Hi, I'm a new RoR and Ruby developer and I'm searching for some good resources (books or website) that go a little further than books like the railstutorial (which is excellent btw). But after reading this, I feel like as long as I'm working with scaffolding and simple gems, it's ok, and a lot

Re: [Rails] Good books about the internals of Rails 3

2012-09-20 Thread Everaldo Gomes
I recommend these two: http://www.amazon.com/Crafting-Rails-Applications-Development-Programmers/dp/1934356735/ref=sr_1_1?ie=UTF8qid=1348172437sr=8-1keywords=crafting+rails+applications

Re: [Rails] New to Rails. Looking for some help

2012-09-20 Thread Bill Walton
Hi John, On Thu, Sep 20, 2012 at 1:52 PM, John B. li...@ruby-forum.com wrote: I have been working with Ruby on Rails for about a week. I am trying to figure out a problem. I have a small relational database. resources :client do resources :department do resources :task end end

Re: [Rails] Good books about the internals of Rails 3

2012-09-20 Thread Fernando Almeida
Metaprogramming Rubyhttp://www.amazon.com/gp/product/1934356476/ref=as_li_ss_tl?ie=UTF8tag=fernandoanet-20linkCode=as2camp=1789creative=390957creativeASIN=1934356476 2012/9/20 Everaldo Gomes everaldo.go...@gmail.com I recommend these two:

[Rails] jQueryUI autocomplete (Rails 3.1): can't get source as url to work

2012-09-20 Thread Lille
Hey, I'm able to duplicate everything in Ryan Bates' screencast on jQueryUI autocomplete (#102http://railscasts.com/episodes/102-auto-complete-association-revised), except for the piece that calls the server for completion data. Here is my view html: input data-autocomplete-source=/searches

Re: [Rails] jQueryUI autocomplete (Rails 3.1): can't get source as url to work

2012-09-20 Thread Jim Ruther Nill
On Fri, Sep 21, 2012 at 9:12 AM, Lille lille.pengu...@gmail.com wrote: Hey, I'm able to duplicate everything in Ryan Bates' screencast on jQueryUI autocomplete (#102http://railscasts.com/episodes/102-auto-complete-association-revised), except for the piece that calls the server for

[Rails] Re: append_features(mod)

2012-09-20 Thread John Merlino
1.9.3p0 :003 class A 1.9.3p0 :004?   end 1.9.3p0 :009 A.is_a?(Module)  = true 1.9.3p0 :010 A.is_a?(Class)  = true 1.9.3p0 :011 Class.is_a?(Module)  = true class is module, so answer is append_features is run On Sep 20, 1:23 am, John Merlino stoici...@aol.com wrote: append_features(mod)

Re: [Rails] jQueryUI autocomplete (Rails 3.1): can't get source as url to work

2012-09-20 Thread Lille
There seems to be nothing wrong in your code. All I can think of that causes this is if another dom element has an id of search-markets. Can you confirm that your view only has one dom with this id? Yes, I confirm. I modified the code to ensure no interference...

[Rails] Queue packages

2012-09-20 Thread xscr...@gmail.com
We're looking for a message router/queing server. Leaning towards RabbitMQ. Any opinions? Thanks, P -- 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

Re: [Rails] jQueryUI autocomplete (Rails 3.1): can't get source as url to work

2012-09-20 Thread Jim Ruther Nill
On Fri, Sep 21, 2012 at 10:25 AM, Lille lille.pengu...@gmail.com wrote: There seems to be nothing wrong in your code. All I can think of that causes this is if another dom element has an id of search-markets. Can you confirm that your view only has one dom with this id? Yes, I confirm.

[Rails] Re: append_features(mod)

2012-09-20 Thread John Merlino
So that explains a lot. When module B is included in class C, we extend ActiveSupport::Concern, which invokes the extended hook in the module Concern, passing module B as local variable base. We want to indicate that module B is a concern, so we set an instance variable @_dependencies on it set

Re: [Rails] jQueryUI autocomplete (Rails 3.1): can't get source as url to work

2012-09-20 Thread Lille
There seems to be nothing wrong in your code. All I can think of that causes this is if another dom element has an id of search-markets. Can you confirm that your view only has one dom with this id? Yes, I confirm. I modified the code to ensure no interference...

Re: [Rails] jQueryUI autocomplete (Rails 3.1): can't get source as url to work

2012-09-20 Thread Jim Ruther Nill
On Fri, Sep 21, 2012 at 11:31 AM, Lille lille.pengu...@gmail.com wrote: There seems to be nothing wrong in your code. All I can think of that causes this is if another dom element has an id of search-markets. Can you confirm that your view only has one dom with this id? Yes, I confirm.

Re: [Rails] jQueryUI autocomplete (Rails 3.1): can't get source as url to work

2012-09-20 Thread Lille
This is what the code compiles to without '-'... $('#search-markets').autocomplete({ source: /searches }); That looks better to me, but it's not happening. That's the right js. You should paste here the code which handles requests to /searches. Here's a curl to confirm that the

[Rails] upload file in rails

2012-09-20 Thread chicong vo
can you helpme upload file in rails -- 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.com. To unsubscribe from this group, send

[Rails] Re: upload file in rails

2012-09-20 Thread chicong vo
i want rename file before upload. can anyone help me -- 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.com. To unsubscribe from

Re: [Rails] Re: Unable to send mail

2012-09-20 Thread Avi
Not sure, because I was facing the same problem, I removed spaces unnecessary symbols, it worked fine for me. On Tuesday, September 18, 2012 9:22:34 PM UTC+5:30, keerthi priya wrote: i tried that also but still the same. On Tue, Sep 18, 2012 at 9:12 PM, Avi aavinas...@gmail.com

[Rails] cancan authorization

2012-09-20 Thread Avi
Is cancan is only used for CRUD operations? Can we use it while navigating a page or any other functionality other than CRUD operations? -- 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

Re: [Rails] cancan authorization

2012-09-20 Thread Jim Ruther Nill
On Fri, Sep 21, 2012 at 2:57 PM, Avi aavinash.beh...@gmail.com wrote: Is cancan is only used for CRUD operations? Can we use it while navigating a page or any other functionality other than CRUD operations? yep. look at https://github.com/ryanb/cancan/wiki/Authorizing-controller-actions