Re: [Rails] how is mongoid syntax implemented ?

2013-10-23 Thread Dheeraj Kumar
It's the new hash syntax introduced in ruby 1.9. On Oct 23, 2013 11:22 PM, "Jedrin" wrote: > > In mongoid, a ORM mapped database object is like below. The part "type: > String" seems to me to not fit into any standard ruby syntax and I was > curious how does mongoid implement that ? > > > class S

Re: [Rails] Rails 4 and HABTM Checkboxes: Unpermitted parameters error

2013-10-23 Thread Walter Lee Davis
Documenting this for posterity... On Oct 23, 2013, at 5:20 PM, Walter Lee Davis wrote: > I have a simple Rails 4 project with two scaffolded models: Practice and > Practitioner. I have set these both as habtm and am in the process of adding > checkboxes to the Practitioner form so that I can ch

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Ralph Vince
On Wed, Oct 23, 2013 at 6:01 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Wed, Oct 23, 2013 at 2:22 PM, Ralph Vince wrote: > > > I dont seem to be able to find any file or folder on this entire, rather > > fresh, linux system named execute-hooks. I think the problem was that I >

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Hassan Schroeder
On Wed, Oct 23, 2013 at 2:22 PM, Ralph Vince wrote: > I dont seem to be able to find any file or folder on this entire, rather > fresh, linux system named execute-hooks. I think the problem was that I > first installed rails 2.3.2. Im going to try to reinstall everything all > over again in the n

[Rails] [ANN] Rails 4.0.1.rc3 has been released!

2013-10-23 Thread Rafael Mendonça França
We found one regression on Active Model, so I'm releasing another release candidate. Here are the changes from 4.0.1.rc2 to 4.0.1.rc3: https://github.com/rails/rails/compare/v4.0.1.rc2...v4.0.1.rc 3 And the changes from 4.0.0 to 4.0

[Rails] What is best way to document RoR app for 3rd party devs?

2013-10-23 Thread Michael Bostler
Hi all, My role at my job is evolving away from rails dev and into a completely different field and I have been asked to document my rails app so that others can maintain/enhance it in the future. What are the best ways to document a rails project so that others in the community could pick up my

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Ralph Vince
On Wed, Oct 23, 2013 at 4:36 PM, Colin Law wrote: > On 23 October 2013 21:29, Jordon Bedwell wrote: > > On Wed, Oct 23, 2013 at 3:19 PM, Ralph Vince wrote: > >> Colin, yes, but this is the world I am stuck in(!) : > >> > >> gem uninstall executable-hooks > >> Error loading RubyGems plugin > >>

[Rails] Rails 4 and HABTM Checkboxes: Unpermitted parameters error

2013-10-23 Thread Walter Lee Davis
I have a simple Rails 4 project with two scaffolded models: Practice and Practitioner. I have set these both as habtm and am in the process of adding checkboxes to the Practitioner form so that I can check off the practices that this practitioner belongs to. In the practitioners_controller, I ad

[Rails] Re: Dry in Rails

2013-10-23 Thread alex fer
Can you something tell about structure a project? -- 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-

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Colin Law
On 23 October 2013 21:29, Jordon Bedwell wrote: > On Wed, Oct 23, 2013 at 3:19 PM, Ralph Vince wrote: >> Colin, yes, but this is the world I am stuck in(!) : >> >> gem uninstall executable-hooks >> Error loading RubyGems plugin >> "/home/user/.rvm/gems/ruby-1.8.6-p420/gems/executable-hooks-1.2.6/

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Jordon Bedwell
On Wed, Oct 23, 2013 at 3:19 PM, Ralph Vince wrote: > Colin, yes, but this is the world I am stuck in(!) : > > gem uninstall executable-hooks > Error loading RubyGems plugin > "/home/user/.rvm/gems/ruby-1.8.6-p420/gems/executable-hooks-1.2.6/lib/rubygems_plugin.rb": > uninitialized constant Execut

Re: [Rails] Dry in Rails

2013-10-23 Thread Jordon Bedwell
On Wed, Oct 23, 2013 at 3:23 PM, alex fer wrote: > Could you please view my rails project. What I do wrong. That is DRY > principle. > My git repo: https://github.com/alexfer/task-manager/tree/master/app Why? Only you can decide what should be DRY-ed up. -- You received this message because you

[Rails] Dry in Rails

2013-10-23 Thread alex fer
Hi all, Could you please view my rails project. What I do wrong. That is DRY principle. My git repo: https://github.com/alexfer/task-manager/tree/master/app -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: T

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Ralph Vince
> > > Since the error you are getting in the executable-hooks gem I would > start by removing it and see what happens. It may not be compatible > with that version of ruby for example. Since it seems the first > version was only three months ago it seems unlikely that your app > needs it [1]. > >

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Colin Law
On 23 October 2013 20:59, Ralph Vince wrote: > > > > On Wed, Oct 23, 2013 at 3:43 PM, Colin Law wrote: >> >> On 23 October 2013 17:44, RVic wrote: >> > >> > >> > On Wednesday, October 23, 2013 11:26:51 AM UTC-4, Colin Law wrote: >> >> >> Why are you using the executablehooks gem anyway on a rai

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Ralph Vince
On Wed, Oct 23, 2013 at 3:43 PM, Colin Law wrote: > On 23 October 2013 17:44, RVic wrote: > > > > > > On Wednesday, October 23, 2013 11:26:51 AM UTC-4, Colin Law wrote: > > >> Why are you using the executablehooks gem anyway on a rails 2 app? > >> > >> > > I didn't intentionally opt for that (

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Colin Law
On 23 October 2013 17:44, RVic wrote: > > > On Wednesday, October 23, 2013 11:26:51 AM UTC-4, Colin Law wrote: >> Why are you using the executablehooks gem anyway on a rails 2 app? >> >> > I didn't intentionally opt for that (or, if i did, it was X years ago when > this thing was written!). How

[Rails] how is mongoid syntax implemented ?

2013-10-23 Thread Jedrin
In mongoid, a ORM mapped database object is like below. The part "type: String" seems to me to not fit into any standard ruby syntax and I was curious how does mongoid implement that ? class Step include Mongoid::Document field :Label, type: String field :Descript, type: String field

[Rails] Github issue tracking

2013-10-23 Thread seanruby seanruby
Hi! I was wondering if anyone has used the http://railstracker.com engine for Github issue tracking? I've been looking for something so my users can monitor stories/bugs i'm working on. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Go

Re: [Rails] Rails book

2013-10-23 Thread Tamara Temple
On Oct 22, 2013, at 2:40 PM, Julien Itard wrote: > Hi there, > i'm a new RoR developer and i need your feedback about this book > :http://pragprog.com/book/rails4/agile-web-development-with-rails-4 > > Is it good for learning Rails ? I mean, i already read Michael Hartl > tutorial. Is it usef

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread RVic
On Wednesday, October 23, 2013 11:26:51 AM UTC-4, Colin Law wrote: > > On 23 October 2013 15:53, RVic > wrote: > > Could you please not top post, it makes it difficult to follow the > thread. Insert your reply at appropriate points in previous message. > Thanks. > > > Colin, ok, I installed

Re: [Rails] rails generate scaffold - ERROR

2013-10-23 Thread Nate West
Hey Natmanu, In order for Rails assets pipeline to handle JS it needs a JS runtime installed on your machine. Since you said you're on Ubuntu if you don't mind installing node you could just run sudo apt-get install nodejs. Otherwise the execjs gem works well and makes your project a little more p

Re: [Rails] rails generate scaffold - ERROR

2013-10-23 Thread Walter Lee Davis
And what do you see at this URL? Walter On Oct 23, 2013, at 10:37 AM, Natmanu wrote: > See https://github.com/sstephenson/execjs for a list of available runtimes. > (ExecJS::RuntimeUnavailable) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Colin Law
On 23 October 2013 15:53, RVic wrote: Could you please not top post, it makes it difficult to follow the thread. Insert your reply at appropriate points in previous message. Thanks. > Colin, ok, I installed 1.3.7: > > rvm install rubygems 1.3.7 > > then: > > ruby script/server > > Error loadin

[Rails] Passing stings into html and not converting to hex (I think)

2013-10-23 Thread Avery Rozar
Hello all. I need pass this without it changing the &, and = into %26, and %3D. <%= @esearch.search q:params[:query]+'&pretty=true' do %> Everything else is working fine, its just passing this ; GET http://localhost:9200/_search?q=asa%26pretty%3Dtrue I need this to be; GET http://localhost:

[Rails] Re: Old rails project, new machine

2013-10-23 Thread RVic
Colin, ok, I installed 1.3.7: rvm install rubygems 1.3.7 then: ruby script/server Error loading RubyGems plugin "/home/user/.rvm/gems/ruby-1.8.6-p420/gems/executable-hooks-1.2.6/lib/rubygems_plugin.rb": uninitialized constant ExecutableHooks (NameError) Error loading RubyGems plugin "/home/

[Rails] rails generate scaffold - ERROR

2013-10-23 Thread Natmanu
Hi, I just installed ROR using the rvm using these instructions: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ Using Ubuntu 12 on VirtualBox I'm trying to create a demo_app rails generate scaffold User name:string email:string gives me this error: -- /home/natmanu/.rvm/gems/ruby-2

[Rails] Re: String interpolation

2013-10-23 Thread Gustav Khimelaynen
Thanks you for reply! I already solved originaly problem with Interpolate features from I18n. среда, 23 октября 2013 г., 17:53:19 UTC+4 пользователь Ruby-Forum.com User написал: > > I'm not sure what the standard is, but I expect you'd handle the > conditional when entering the value into the ha

[Rails] Re: String interpolation

2013-10-23 Thread Joel Pearson
I'm not sure what the standard is, but I expect you'd handle the conditional when entering the value into the hash. hash = {} hash[:reward] = condition ? "Bark five times" : "Bark four times" "%{reward}" % hash -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Re: Old rails project, new machine

2013-10-23 Thread Colin Law
On 23 October 2013 14:14, RVic wrote: > Colin, > > I think you've forgotten more about Rails than I will ever know. Im using > rvm, so to use in earlier versin of rubygems, how would I specify that? I > took your advice and tried to comment out line 31 in custom_require.rb, and > when I go to invo

[Rails] Re: Old rails project, new machine

2013-10-23 Thread RVic
Colin, I think you've forgotten more about Rails than I will ever know. Im using rvm, so to use in earlier versin of rubygems, how would I specify that? I took your advice and tried to comment out line 31 in custom_require.rb, and when I go to invoke with the old "ruby script/server" it now com

[Rails] rails fckeditor plugin in 2 forms in a view page

2013-10-23 Thread ruby rails
Hi, I have a view page where there are 2 forms and each form have fckeditor textarea. . SO initially both forms will be hidden on page load. When I click on a link1, the form1 div will be shown and form2 will be hidden and vice versa. But when I click on link1 the form1 div appears the 2 fck text

[Rails] rails fckeditor plugin in 2 forms in a view page

2013-10-23 Thread Pradeep Achuthan
Hi, I have a view page where there are 2 forms and each form have fckeditor textarea. . SO initially both forms will be hidden on page load. When I click on a link1, the form1 div will be shown and form2 will be hidden and vice versa. But when I click on link1 the form1 div appears the 2 fck te

Re: [Rails] Old rails project, new machine

2013-10-23 Thread Colin Law
On 23 October 2013 13:44, RVic wrote: > I have an older rails app that runs on an old, windows machine that i ned to > port to a more modern linux. The app is written using ruby 1.8.6 (2010-09-02 > patchlevel 420) [i686-linux] with rails 2.3.2. > > I have installed all of it on the new system, all

[Rails] Old rails project, new machine

2013-10-23 Thread RVic
I have an older rails app that runs on an old, windows machine that i ned to port to a more modern linux. The app is written using ruby 1.8.6 (2010-09-02 patchlevel 420) [i686-linux] with rails 2.3.2. I have installed all of it on the new system, all the required gems and plugins, but when I go

Re: [Rails] undefined method Rails 4

2013-10-23 Thread Fahad Idrees
Just as a first impression, without looking into it in detail - you may have trouble using routes as a class name, it's already a class name under ActionDispatch. However, I think your problem is actually your route: match '/load_data', to: 'routes#new', via: 'get' This isn't a resource route, it

Re: [Rails] undefined method Rails 4

2013-10-23 Thread BalaRaju Vankala
Routes match '/load_data', to: 'routes#new', via: 'get' I think the problem in your routes file. Remove this line "*match '/load_data', to: 'routes#new', via: 'get*' " and add this line-*"resources :routes" *. On Wed, Oct 23, 2013 at 1:33 AM, Jose Urquidi wrote: > Good Day, i'm having a

Re: [Rails] Profiles

2013-10-23 Thread Colin Law
On 22 October 2013 21:27, Orlando Hernandez wrote: > Hi is I'm making a web app in which I am asked to register users, I did this > already with Devise the problem is that I also create a profile for each > user to register ... anyone have idea how to do? if so thank you very much > hope you can h

[Rails] Paypal integration with brazil Real BRL ,

2013-10-23 Thread Arvind Vyas
I have created the Paypal integration with us dollar. i need it to change it to brazil Real BRL , how to do? , is any buddy can help. We can not change the currency in BRL due to some issue through rails app .what i want is Paypal should directly ask to pay in BRL -- You received this messa

[Rails] Consulting about implementing ad-classified engine from the ground?

2013-10-23 Thread bh
Hi guys, I'd like to implement a professional advertising classified engine in Ruby on Rails with cutting-edge technologies from the ground similar to Osclass [http://osclass.org] but scalability as Craigslist, flexibility and customizability (integratable, theme customizable & plug-inable) as