[Rails] browse active directory.

2010-11-17 Thread Mauro
There is a gem or a plugin suitable to browse an active directory? We have a windows server domain controller and I need to browse the active directory to retrieve some informations about users. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] How do I create a function

2010-11-17 Thread Michael Pavling
On 17 November 2010 01:24, Jason Hhh li...@ruby-forum.com wrote: Can someone explain to me how I create a function in ROR On 17 November 2010 02:48, Jason Hhh li...@ruby-forum.com wrote: I have a rails app.  I understand how to create a function in Rails. I'm a little confused as to what you

[Rails] Re: How to use request helpers outside of controller tests?

2010-11-17 Thread turkan
I just solved the problem by including the below code in my acceptance helper. If you are not Steak then just simply put it in spec helper or require it from somewhere else. post and xhr methods are now available in that spec regardless in what spec it is or in what directory you are. The code is

[Rails] Re: Best way to test web services and XMLHttpRequest

2010-11-17 Thread turkan
On Nov 17, 3:09 am, Marnen Laibow-Koser li...@ruby-forum.com wrote: turkan wrote in post #962004: Then that tells me that their stories are too verbose. English language is verbose ;-) No, it really isn't.  ERb is not going to camouflage poorly designed views.  Steak looks very much like

[Rails] Re: how to insert static pages and how to develop a website using ROR?

2010-11-17 Thread Gogov
If you're new to this stuff, spend some time with http://railstutorial.org/ I invested 2 days in going over this tutorial and it's very useful for a newcomer. Here's useful examples about static pages: http://railstutorial.org/chapters/static-pages#top Browse around the site to find even more

[Rails] Re: how to install ror on windows 7

2010-11-17 Thread MarcRic
Colin, I have done my tests on Ubuntu (and many others, like OpenSuse; RedHat; Gentoo; Debian; a local distribution called Kurumin which is a very clever one), I'm not particularly a Windows fan. I just have used it for so many years at work (in my case I have no control, it has been always a

Re: [Rails] Re: how to install ror on windows 7

2010-11-17 Thread Colin Law
On 17 November 2010 12:29, MarcRic marc...@gmail.com wrote: Colin, [...] That is the reason, I will never ever change Windows for OS/X, if I have to change from Windows, Ubuntu (or any counterpart) will be MY choice, because these are MY principles. Had you quoted me inline rather than top

[Rails] Re: Best way to test web services and XMLHttpRequest

2010-11-17 Thread Marnen Laibow-Koser
turkan wrote in post #962094: On Nov 17, 3:09am, Marnen Laibow-Koser li...@ruby-forum.com wrote: turkan wrote in post #962004: Then that tells me that their stories are too verbose. English language is verbose ;-) You're right. I used the wrong word. That tells me that their stories are

[Rails] Re: foreigner plugin.

2010-11-17 Thread Marnen Laibow-Koser
Phoenix Rising wrote in post #962048: Basically, Rails uses the has_many/one belongs_to features to mimic the functionality of a database foreign key. A real foreign key, however, is built DIRECTLY into the database structure itself instead of relying on Rails to make it work. Not quite.

[Rails] Re: foreigner plugin.

2010-11-17 Thread Marnen Laibow-Koser
Dani Dani wrote in post #962064: Thank you Marnen and Phoenix for your detailed explanations. I do understand the functionality of the foreign key. I just was not sure whether relying on rails's foreign key functionaliy is good enough and there is no need to do it directly on the database,

[Rails] Re: How do you turn off notices using PostgreSQL 9?

2010-11-17 Thread byrnejb
On Nov 17, 2:28 am, Phoenix Rising polarisris...@gmail.com wrote: One last thing: how the hell do you correctly pronounce PostgreSQL? Post-gray-sequel, Post-gress, or something else?  Additionally, what's the community's opinion in general on performance for PGSQL 9 vs. MySQL 5.1? No holy

[Rails] Re: How do you turn off notices using PostgreSQL 9?

2010-11-17 Thread Marnen Laibow-Koser
Phoenix Rising wrote in post #962053: Hey fellas, I'm a MySQL to PostgreSQL immigrant due to Oracles fuсking MySQL in the ass lately, and I've migrated a Rails application successfully to PostgreSQL 9. Welcome to the world of decent DBs! However, when running migrations/tests, etc., I get

[Rails] Re: Script working on boot drive, but not external drive with space in the name. Please help!

2010-11-17 Thread yaphi
Ah that would make sense for the boot drive. I've escaped the path and I still get the issue. I am eventually going to end up renaming the volume and re-linking all my aliases. On Nov 17, 2:50 am, Frederick Cheung frederick.che...@gmail.com wrote: On Nov 16, 9:18 pm, yaphi jconto...@gmail.com

[Rails] Re: Script working on boot drive, but not external drive with space in the name. Please help!

2010-11-17 Thread Marnen Laibow-Koser
yaphi wrote in post #962145: Ah that would make sense for the boot drive. I've escaped the path and I still get the issue. I am eventually going to end up renaming the volume and re-linking all my aliases. Better yet, report a bug for the library. This is not acceptable behavior on its part.

[Rails] Re: Script working on boot drive, but not external drive with space in the name. Please help!

2010-11-17 Thread Marnen Laibow-Koser
Please quote when replying. yaphi wrote in post #962152: The library is the URi class in Ruby right? It looks like the jazz_money gem is probably what's causing the problem. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. --

[Rails] Thinking Sphinx Query. Please Help.

2010-11-17 Thread ketan deshmukh
Hi, I am new with ruby on rails. I am working on a project. I which i have a model named ngo.rb and it has a has_one association with another model named ngo_staff.rb Description of model : 1. Ngo - id - has_one :ngo_staff 2.

[Rails] Very confused - scaffold action does - sends NULL to db

2010-11-17 Thread comopasta Gr
Hi, I'm a bit confused with this. If you follow the steps below in Rails 3: 1- rails new act -d mysql 2- rails g scaffold action name:string 3- rake db:create 4- rake db:migrate 5- rails server when I add a record to that app I get: INSERT INTO `actions` (`created_at`, `name`, `updated_at`)

[Rails] user_url failed to generate from {:action=show, :controller=users, :id=#User id: 1

2010-11-17 Thread tom
hi, not sure what i did, but now im getting suddenly this: user_url failed to generate from {:action=show, :controller=users, :id=#User id: 1 log: /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:426:in `raise_named_route_error'

Re: [Rails] Very confused - scaffold action does - sends NULL to db

2010-11-17 Thread Luciano Sousa
try added mannually using rails console $ Action.create(:name = name example) and, post result. att: Luciano Sousa http://www.lucianosousa.net http://www.lucianosousa.nethttp://twitter.com/lucianosousa *Ruby on Rails Developer *Linux User #456387 *Contato: (21) 8418-5945 2010/11/17 comopasta

[Rails] Re: Very confused - scaffold action does - sends NULL to db

2010-11-17 Thread Marnen Laibow-Koser
comopasta Gr wrote in post #962162: Hi, I'm a bit confused with this. If you follow the steps below in Rails 3: 1- rails new act -d mysql 2- cd act 3- rails g scaffold action name:string 4- rake db:create 5- rake db:migrate 6- rails server when I add a record to that app I get: INSERT

[Rails] Re: Very confused - scaffold action does - sends NULL to db

2010-11-17 Thread Ar Chron
comopasta Gr wrote in post #962162: Do another scaffold named act and everything goes fine with no changes. I could imagine that action is a reserved word but shouldn't it complain about it? Any hints? I'd imagine that your use of a reserved word has caused the issue, so don't. I am

[Rails] Re: Best way to test web services and XMLHttpRequest

2010-11-17 Thread Owain
I have been using the ruby rest-client to test the webservice integration: see https://github.com/archiloque/rest-client in conjunction with cucumber and rspec. Admittedly in a Sinatra environment but it will work with Rails too. That and Xpath

[Rails] Re: Very confused - scaffold action does - sends NULL to db

2010-11-17 Thread Marnen Laibow-Koser
Ar Chron wrote in post #962166: comopasta Gr wrote in post #962162: Do another scaffold named act and everything goes fine with no changes. I could imagine that action is a reserved word but shouldn't it complain about it? Any hints? I'd imagine that your use of a reserved word has caused

[Rails] Re: Very confused - scaffold action does - sends NULL to db

2010-11-17 Thread comopasta Gr
Thanks guys, Of course I could paste all the code here. This uses the generated code by the scaffold generator. I haven't changed a single line. Anyway, the main involved action is the create: # POST /actions # POST /actions.xml def create @action = Action.new(params[:action])

Re: [Rails] Re: Re: Why is my models can't be related using has_one and belongs_to?

2010-11-17 Thread Colin Law
On 17 November 2010 01:09, arga aridarma arga_arida...@yahoo.com wrote: - Original Message From: Colin Law clan...@googlemail.com To: rubyonrails-talk@googlegroups.com Sent: Wednesday, November 17, 2010 5:29:48 Subject: Re: [Rails] Re: Re: Why is my models can't be related using

Re: [Rails] Very confused - scaffold action does - sends NULL to db

2010-11-17 Thread Colin Law
On 17 November 2010 15:29, comopasta Gr li...@ruby-forum.com wrote: Hi, I'm a bit confused with this. If you follow the steps below in Rails 3: 1- rails new act -d mysql 2- rails g scaffold action name:string 3- rake db:create 4- rake db:migrate 5- rails server when I add a record to

[Rails] Re: user_url failed to generate from {:action=show, :controller=users, :id=#User id: 1

2010-11-17 Thread tom
fixed - my bad. prob was wrong overriden param definition. On Wed, Nov 17, 2010 at 10:32 AM, tom tomabr...@gmail.com wrote: hi, not sure what i did, but now im getting suddenly this: user_url failed to generate from {:action=show, :controller=users, :id=#User id: 1 log:

[Rails] Re: Very confused - scaffold action does - sends NULL to db

2010-11-17 Thread comopasta Gr
Yeah, reserved. First link in google sorry for that. I would have expected to see some complains from the framework though. 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 post to

[Rails] Re: Very confused - scaffold action does - sends NULL to db

2010-11-17 Thread Marnen Laibow-Koser
Colin Law wrote in post #962187: On 17 November 2010 15:29, comopasta Gr li...@ruby-forum.com wrote: INSERT INTO `actions` (`created_at`, `name`, `updated_at`) VALUES ('2010-11-17 15:23:53', NULL, '2010-11-17 15:23:53') Note that NULL for the name value. I use as valid string but there is

[Rails] button_to confirm not working

2010-11-17 Thread loominator1970
Hello, I'm using the 'button_to' helper in the following syntax: td%= button_to Delete, { :action = destroy, :id = user.id }, :confirm = Are you sure?, :method = :delete, :class = 'submitLink' %/td However, the confirmation is not working, its going straight to the destroy action in

[Rails] looking for Ruby on Rails profiles,- jobs in SF

2010-11-17 Thread Padma Rao
We have positions looking for Ruby on Rails! please contact me 408 961 7582 -- 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-t...@googlegroups.com. To unsubscribe from this group, send email

[Rails] config.plugins breaks w/ bundler?

2010-11-17 Thread Josh
I have a functioning 2.3.10 app using bundler. When I add this: config.plugins = [ 'exception_notification', 'ssl_requirement', 'sphinx', 'ssl_requirement', 'strip_attributes', 'subdomain-fu', 'validates_date_time', 'xss_terminate'] to my environment.rb then all of a sudden my gems aren't

[Rails] Re: looking for Ruby on Rails profiles,- jobs in SF

2010-11-17 Thread Marnen Laibow-Koser
Padma Rao wrote in post #962215: We have positions looking for Ruby on Rails! please contact me 408 961 7582 You clearly didn't put any effort into writing this job posting. Why should anyone put any effort into responding? Best, -- Marnen Laibow-Koser http://www.marnen.org

[Rails] Re: button_to confirm not working

2010-11-17 Thread Marnen Laibow-Koser
loominator1970 wrote in post #962212: Hello, I'm using the 'button_to' helper in the following syntax: td%= button_to Delete, { :action = destroy, :id = user.id }, :confirm = Are you sure?, :method = :delete, :class = 'submitLink' %/td However, the confirmation is not working,

[Rails] Re: select_tag not posting selection

2010-11-17 Thread Marnen Laibow-Koser
Erick C. wrote in post #961955: Here is the (Partial) code in the _form.html.erb: ---code fragment--- %= form_for(@order) do |f| % % if @order.errors.any? % div id=error_explanation h2%= pluralize(@order.errors.count, error) % prohibited this order from being saved:/h2

[Rails] including ERB in README.rdoc and rdoc pukes

2010-11-17 Thread rails.impaired
I am building a very small gem and need to include some ERB in the README.rdoc for this gem. example: Here is a couple of instructions, blah, blah... div class=field %= f.label :author %br / %= f.text_field :author % /div div class=field %= f.label :title %br / %=

Re: [Rails] Re: select_tag not posting selection

2010-11-17 Thread Colin Law
On 17 November 2010 20:51, Marnen Laibow-Koser li...@ruby-forum.com wrote: Erick C. wrote in post #961955: Here is the (Partial) code in the _form.html.erb: ---code fragment--- %= form_for(@order) do |f| %   % if @order.errors.any? %     div id=error_explanation       h2%=

[Rails] Re: RSpec Test: has_many and belongs_to conflicts

2010-11-17 Thread Luis Romero
Thank you Marnen, this is exactly what I needed...Not sure why I hadn't run across this method before Luis -- 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: How do I create a function

2010-11-17 Thread Jason Hhh
Thanks Phoenix Rising for the detailed explanation. This is just what I needed. Much appreciated! I am understanding Rails more and more every day. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: button_to confirm not working

2010-11-17 Thread loominator1970
Is JavaScript turned on in your browser? Yes, I have jQuery and protoype enabled in the application.html.erb page. -- 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-t...@googlegroups.com.

[Rails] Re: How to enable div that was hide using JQuery

2010-11-17 Thread Jeremy Woertink
This sounds more like a jQuery question then a Rails one, but let's see if I can help anyway. So, you click a link, something happens, then the div hides. You click the link again, something happens, and the div shows up? div id=some_div_toggleWith stuff in it/div a href=#

Re: [Rails] Re: button_to confirm not working

2010-11-17 Thread Colin Law
On 17 November 2010 21:47, loominator1970 loominator1...@gmail.com wrote: Is JavaScript turned on in your browser? Yes, I have jQuery and protoype enabled in the application.html.erb page. Is that Yes I have JavaScript turned on in the browser _and_ I have jQuery and prototype enabled in

[Rails] Rails 3 select form helper bug?

2010-11-17 Thread Jeremy Woertink
I'm wondering if this is a bug, and if anyone else has noticed this. I have a couple apps on Rails 3.0.0, 3.0.1, and 3.0.2 now. Each one of these apps has some kind of model that has a boolean field. I'm using a select box to toggle Yes and No answers like this: %= f.select(:featured, [[Yes,

[Rails] Rails 3.1 PDF Render

2010-11-17 Thread amkirwan
I'm trying to figure out how to convert a Rails plugin I wrote that handles a custom PDF render that works in Rails 2.3.9 but doesn't in Rails 3.1. What we have is a separate server that actually does the PDF generation of the webpage and then sends this back to the Rails app. The plugin is

[Rails] Error in creating new file

2010-11-17 Thread Jatin
In my controller method, I am doing this File.open (#{RAILS_ROOT}/directory/ #{params[:file_name]}.#{params[:file_type]}, 'w') do |f| f.write(params[:file_body]) end but I am getting this error NoMethodError (undefined method ` ' for

[Rails] Plugin rmm5t / strip_attributes

2010-11-17 Thread Rodrigo Mendonça
Anyone know if have any plugin like these for Rails 3.0 https://github.com/rmm5t/strip_attributes -- Rodrigo Mendonça (62) 8567-3142 -- 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] Parsing an Email Message for just the reply, not the old thread?

2010-11-17 Thread CuriousNewbie
Hello, I set my app to receive incoming emails via a post from a service. The controller that receives the posts looks a little like this: class IncomingMailsController ApplicationController require 'mail' skip_before_filter :verify_authenticity_token def

[Rails] Rake db:seed complains about form not being multipart encoded

2010-11-17 Thread stephenjamesmurdoch
I'm using CarrierWave to attach icons to my activities model. I have a bunch of seed data that I want to create every time I recreate my database. The following line from my seeds.rb file causes rake to throw and error: activity = Activity.create! :name = 'Football', :icon =

[Rails] Re: Rake db:seed complains about form not being multipart encoded

2010-11-17 Thread stephenjamesmurdoch
Managed to fix this thanks to the following question on stack overflow http://stackoverflow.com/questions/3910162/seeding-file-uploads-with-... Just had to fix the code in my seeds file a bit. The following works: activity = Activity.create! :name = 'Football', :icon =

[Rails] Re: button_to confirm not working

2010-11-17 Thread loominator1970
Actually, its C. I'm a dumba$$ and didn't read your question carefully enough :) Javascript IS turned on in my browser and enabled in my app. I will follow you suggestion and try that route. Thanks for the help! On Nov 17, 2:56 pm, Colin Law clan...@googlemail.com wrote: On 17 November 2010

[Rails] Re: Trouble inserting large objects into memcached

2010-11-17 Thread Mukesh Kumar
Wes Gamble wrote in post #216702: SOLUTION: I modified memcache-client to break up objects larger than 1048510 bytes (just under 1MB, you can't successfully store more than this in the memcache) into pieces internally so that they can be stored. When a get is done, the pieces are reconstituted

[Rails] String concatenation in the helper text

2010-11-17 Thread Aruna Chinnamuthu
Hi , I am trying to append the string in the helper function . content_tag(:span, :class = a) do user.designation end + content_tag(:span, :class = b) do user.number end In the above, i am trying to append strings before the value user.designation and user.number. like do Designation

[Rails] How to insert/upload my static pages into the application

2010-11-17 Thread venkata reddy
Hi All, this is venkat and who is a bit new to ROR, I am working on buildina a hospital website. So almost all my webpages are static pages. I created all my webpages(8 in total) a home page and links to the other pages. so how can i insert/upload these pages in to the site? and also let me know

Re: [Rails] Parsing an Email Message for just the reply, not the old thread?

2010-11-17 Thread Philip Hallstrom
On Nov 17, 2010, at 5:40 PM, CuriousNewbie wrote: Hello, I set my app to receive incoming emails via a post from a service. The controller that receives the posts looks a little like this: class IncomingMailsController ApplicationController require 'mail'

Re: [Rails] String concatenation in the helper text

2010-11-17 Thread Philip Hallstrom
Hi , I am trying to append the string in the helper function . content_tag(:span, :class = a) do user.designation end + content_tag(:span, :class = b) do user.number end In the above, i am trying to append strings before the value user.designation and user.number. like do

[Rails] Rails 3 upgrade - Custom cache store

2010-11-17 Thread Shep
I had a custom cache store set up in Rails 2.3. I'm in the process of upgrading to rails 3, but have run into a snag. Before I had all the setting in my environment.rb. It would basically load a yaml file with my server settings, and set up the store via config.cache_store. It seemed like the

Re: [Rails] How to insert/upload my static pages into the application

2010-11-17 Thread Bala Paranj
You don't need Rails for a static website. Just upload your static files and images using ftp to your host. On Wed, Nov 17, 2010 at 10:18 PM, venkata reddy venkatareddy...@gmail.comwrote: Hi All, this is venkat and who is a bit new to ROR, I am working on buildina a hospital website. So