[Rails] Re: Editors in Rails

2011-09-18 Thread lionel Lioninho
look at Ck-editor, or the google closure Library (editor) -- 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 email to rubyonrails-t

[Rails] Editors in Rails

2011-09-18 Thread Mathew Vivek
Hi, I have used tiny-mce editor in my current app. I am facing some sort of issues. I want to know is there are any kinds of editors supported by rails(compatible). regards, mathew -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Re: belongs_to not working as

2011-09-18 Thread mohitnegi
Thanks all, Actually reg_no column is present in both the models. and was not mentioned as primary key in any of the model. Thanks Colin , Fred for the quick response!! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discus

[Rails] Re: bundle install question

2011-09-18 Thread gezope
Dear Craig! You definitely want to use RVM because this is the only way (as I know) on any *nix system to avoid bad confusions with gem versions. Also RVM can create separated Rubies, Gems further more project specific Gemsets for you. Please checkout this repo: http://gezope.github.com/rvm_insta

[Rails] Re: problem using mysql 5.1 with RoR 3.1

2011-09-18 Thread gezope
Hi, if you're new to Rails on Ubuntu DO NOT follow that blog post, it's simply bad. Use RVM instead: http://gezope.github.com/rvm_install_script/ First I highly recommend to start with all default settings. If anything works properly and then you change DB for example and an error occurs - you can

[Rails] 3.1 asset pipeline + Capistrano troubles

2011-09-18 Thread Alistair Holt
Hello, I'm having a bit of trouble with the asset pipeline and, I think, Capistrano. In my app layout I have: <%= stylesheet_link_tag "application", "bootstrap" %> And the relevant bits of the app dir structure are: app/assets/stylesheets/application.css.scss # Contains 'require_self' and

[Rails] Vice President of Engineering (Cloud, Ruby, Flex, Unix)

2011-09-18 Thread Danny!
JOB TITLE: Engineering (Director or Vice President) LOCATION: Currently located in San Jose – Moving to Mountain View area (94043) in Jan 2012 REPORTS TO: CTO - Founder JOB PURPOSE: Directly responsible for the overall administration, coordination, and evaluation of the technology engineering pl

[Rails] Webinar: Ruby on Rails: Automating with Chef, Capistrano, Git, Puppet & SVN #rormeetup

2011-09-18 Thread Danny!
Ruby on Rails: Automating with Chef, Capistrano, Git, Puppet & SVN #rormeetup Corporate Sponsors : Rapleaf (San Francisco) and Mixbook (San Jose) Topic : Automating Ruby-on-Rails Deployments using Chef, Capistrano, Git, Puppet & SVN RSVP for Meetup Here: http://www.bit.ly/rormeetup RSVP for Live S

[Rails] SF BASE MeetUp Group: Ruby-on-Rails at Rapleaf with Mixbook (Oct 6th) #rormeetup

2011-09-18 Thread Danny!
Ruby on Rails: Automating with Chef, Capistrano, Git, Puppet & SVN #rormeetup Corporate Sponsors : Rapleaf (San Francisco) and Mixbook (San Jose) Topic : Automating Ruby-on-Rails Deployments using Chef, Capistrano, Git, Puppet & SVN RSVP for Meetup Here: http://www.bit.ly/rormeetup RSVP for Live S

Re: [Rails] Only one side of join table is being saved

2011-09-18 Thread Colin Law
On 18 September 2011 19:26, Jordan F. wrote: > In my app, User objects can follow each other, and be followed. The two > relationships are distinct. > > I'm seeing that when I set `user_a.follows << user_b` that > `user_b.followed_by.count` still == 0. Why? I have not looked at your code in detai

Re: [Rails] rake aborted

2011-09-18 Thread Colin Law
On 18 September 2011 17:39, Amrit Pal Pathak wrote: > I migrated the database and it gives the error > (in /home/amrit/library) > rake aborted! > no such file to load -- rubygems > /home/amrit/library/Rakefile:4:in `require' > (See full trace by running task with --trace) > Please somebody suggest

[Rails] Re: partials and render_to_string

2011-09-18 Thread John Merlino
this was incredible response, everything was explained so clearly. On Sep 18, 2:40 pm, 7stud -- wrote: > John Merlino wrote in post #1022569: > > > Hey all, > > > This is my understanding of html and browsers. On the server, html is > > plain text. When the browser sends request to server to fetc

[Rails] Re: partials and render_to_string

2011-09-18 Thread 7stud --
John Merlino wrote in post #1022569: > Hey all, > > This is my understanding of html and browsers. On the server, html is > plain text. When the browser sends request to server to fetch a > document, if the file is not already in html format, perhaps instead > in an rb file, ruby or whatever the s

[Rails] Only one side of join table is being saved

2011-09-18 Thread Jordan F.
In my app, User objects can follow each other, and be followed. The two relationships are distinct. I'm seeing that when I set `user_a.follows << user_b` that `user_b.followed_by.count` still == 0. Why? When I play in the console, I see: [code] $ jordan = User.new(:name=>"Jordan") => # $ matt =

[Rails] Re: HELP!! "Could not find a JavaScript runtime " ERROR

2011-09-18 Thread Martin Wawrusch
I just noticed that you are using a Windows PC. In this case therubyracer will not work. Take a look at https://github.com/sstephenson/execjs and google for execjs and windows. On Sun, Sep 18, 2011 at 10:34 AM, Datawizz wrote: > Hello Martin, > I got the following error stacktrace after inclu

[Rails] Re: HELP!! "Could not find a JavaScript runtime " ERROR

2011-09-18 Thread Martin Wawrusch
add gem 'therubyracer' to your Gemfile run bundle install FWIW: This is the kind of question that will get you a bad reputation on mailing lists. Typing in execjs and javascript into google returned this link: http://stackoverflow.com/questions/6282307/rails-3-1-execjs-and-could-not-find-a-jav

[Rails] partials and render_to_string

2011-09-18 Thread John Merlino
Hey all, This is my understanding of html and browsers. On the server, html is plain text. When the browser sends request to server to fetch a document, if the file is not already in html format, perhaps instead in an rb file, ruby or whatever the server-side language of choice converts the file

[Rails] rake aborted

2011-09-18 Thread Amrit Pal Pathak
I migrated the database and it gives the error (in /home/amrit/library) rake aborted! no such file to load -- rubygems /home/amrit/library/Rakefile:4:in `require' (See full trace by running task with --trace) Please somebody suggest what got wrong? -- Thanks Regards Amrit Pal amritpalpathak.b

[Rails] bundler (1.0.18) Impasse

2011-09-18 Thread Viaduct Productions
Hi folks. Just got this upon generating a new controller and view: > $ rails generate controller demo index > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/dependency.rb:52:in > `initialize': Valid types are [:development, :runtime], not nil > (ArgumentError)

[Rails] Re: devise users/sign_out not working

2011-09-18 Thread Neha Sinha
Hi, I too am facing the same problem. Im not using JQuery (not that I know of, since I havent installed it) Any suggestions to overcome this error? On Aug 6, 5:52 am, Nahuel Garbezza wrote: > Sayuj, > > Are you using JQuery? In that case, you can try "rails g > jquery:install". I had the same p

Re: [Rails] Rails 3 and postgresql

2011-09-18 Thread gato pardo
> > Notice how the spec for id is different between the two tables, I > suppose that is due to the fact that you are providing your own > nextval for id (there is no spec for it in sessions so rails will > assume the default id column). I suspect this may be the cause of the > problem. First I su

[Rails] Re: Authlogic saves users with blank password.

2011-09-18 Thread Romain 'Maz' BILLOIR
Ok, just fixed the issue: in my model the right syntax was "attr_accessible", everything works fine now. -- 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 unsubscrib

Re: [Rails] Rails 3 and postgresql

2011-09-18 Thread Colin Law
On 18 September 2011 11:13, gato pardo wrote: >> >> >> > Well you should have, you should have used rails migrations to create >> > the db, unless this is a legacy database.  Create schema.rb by running >> > rake db:schema:dump >> > and post it here, though whether this is anything to do with the

Re: [Rails] Rails 3 and postgresql

2011-09-18 Thread gato pardo
> > > Well you should have, you should have used rails migrations to create > > the db, unless this is a legacy database. Create schema.rb by running > > rake db:schema:dump > > and post it here, though whether this is anything to do with the > > problem is unlikely. > > Also post model/pack.rb p

Re: [Rails] Rails 3 and postgresql

2011-09-18 Thread Colin Law
On 18 September 2011 10:35, Colin Law wrote: > On 18 September 2011 10:29, gato pardo wrote: >> [...] >>   1.- Results with Pack.find 1 >> >> "irb(main):001:0> Pack.find 1 >> Could not log "sql.active_record" event. NoMethodError: undefined method >> `name' for nil:NilClass >> PGError: ERROR:  ze

Re: [Rails] Rails 3 and postgresql

2011-09-18 Thread Colin Law
On 18 September 2011 10:29, gato pardo wrote: > [...] >   1.- Results with Pack.find 1 > > "irb(main):001:0> Pack.find 1 > Could not log "sql.active_record" event. NoMethodError: undefined method > `name' for nil:NilClass > PGError: ERROR:  zero-length delimited identifier at or near > LINE 1

Re: [Rails] Rails 3 and postgresql

2011-09-18 Thread gato pardo
> What happens if, in the rails console, you type > Pack.find 1 > > Paste the result here. > Also show us db/schema.rb > > Colin > -- > gplus.to/clanlaw > > Thanks Colin: 1.- Results with Pack.find 1 "irb(main):001:0> Pack.find 1 Could not log "sql.active_record" event. NoMethodError: undefined

Re: [Rails] HELP!! "Could not find a JavaScript runtime " ERROR

2011-09-18 Thread Norbert Melzer
Am 18.09.2011 08:04 schrieb "Datawizz" : > > Hello ALL, > I'm new to RoR, I get the following error stack whenever I issue > "rails server" or "rails generate ..." command. > > Thanks in advance! > > > ERROR STACK: > > C:\Sites\demo_app>rails generate scaffold User name:string > email:string > C:/R

Re: [Rails] Re: error with select helper

2011-09-18 Thread Michael Pavling
On 18 September 2011 08:32, Frederick Cheung wrote: > Another thing to check is the value of @sub_season - the select helper > will try to call id on that too. *bingo* I'd say :-) yes... I'm moving my chips to that square - the helper looks for a default value for the :model and :method you've g

[Rails] Re: error with select helper

2011-09-18 Thread Frederick Cheung
> > Now, OP, can you please show the code that populates @sub_seasons in > the controller - as I think the problem is something to do with what > that's being filled with - it may be an array of arrays, or something > else, but it would be nice to see. Another thing to check is the value of @su

Re: [Rails] Re: Re: error with select helper

2011-09-18 Thread Colin Law
On 18 September 2011 00:44, 7stud -- wrote: > Colin Law wrote in post #1022477: >> On 17 September 2011 20:49, 7stud -- wrote: >>> --output:-- >>> >>> undefined method `id' for [1, 2]:Array (NoMethodError) >> >> I am not sure why you would expect anything else.  @sub-seasons is an >> array.  The

Re: [Rails] Rails 3 and postgresql

2011-09-18 Thread Colin Law
On 18 September 2011 02:25, gato pardo wrote: > I have a simple project created around a very, very simple database: one > main table packs with just three rows >  Column |  Type              | > Modifiers > > +-+-