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
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
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
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
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
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
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
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
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.
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,
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
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
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
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.
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/.
--
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.
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`)
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'
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
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
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
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
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
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])
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
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
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:
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
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
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
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
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
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
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,
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
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 /
%=
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%=
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
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
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.
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=#
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
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,
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
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
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
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
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 =
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 =
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
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
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
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
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'
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
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
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
57 matches
Mail list logo