search for: kadoudal

Displaying 15 results from an estimated 15 matches for "kadoudal".

2011 Apr 04
0
issue installing gem Capybara on Debian5 w ruby 1.9.2 ( Rails 3.0.5) => installing native extension
...: celerity-0.8.9.gem (100%) Fetching: json_pure-1.5.1.gem (100%) Fetching: rubyzip-0.9.4.gem (100%) Fetching: ffi-1.0.7.gem (100%) Building native extensions. This could take a while... ERROR: Error installing capybara: ERROR: Failed to build gem native extension. rake RUBYARCHDIR=/home/kadoudal/.rvm/gems/ruby-1.9.2- p180@rails3/gems/ffi-1.0.7/lib RUBYLIBDIR=/home/kadoudal/.rvm/gems/ ruby-1.9.2-p180@rails3/gems/ffi-1.0.7/lib /home/kadoudal/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/ rubygems.rb:388:in `bin_path'': can''t find gem rake ([">= 0"]) with...
2006 Oct 31
3
ActionMailer how to check mail sent
...r_name => "myusername", :password => "mypassword", :authentication => :login } functional test are good... mail sent development.log contains the correct mail : Sent mail: Date: Tue, 31 Oct 2006 18:17:32 +0100 From: enregistrement-9cHsihwSe2Y@public.gmane.org To: kadoudal-ee4meeAH724@public.gmane.org Subject: PDM Test Site - Activez votre enregistrement dans PDM Content-Type: text/plain; charset=utf-8 You are now registered : ID: yves Password: eddy clic on the following url to ... no errors.. but no mail received by kadoudal-eHRmlF0ECV2tXF2fZOsJYA@public.gmane...
2006 Aug 13
1
select include_blank true
Is there any way to display a default message value ''Select'' rather tha an empty value when using this option ? kad -- Posted via http://www.ruby-forum.com/.
2006 Aug 04
3
<img onclick> vs link_to_remote()
In one of my view , I have an image the user need to click to close a <div>selections</div> added by an Ajax call. if I use : <img src ="/images/icon_closeitem.gif", size="16*16", border="0",alt="Close Selection", title="Close", onclick="<%= remote_function(:url => { :controller => ''property'',
2006 Aug 09
0
h() assistant or sanitize() with form_remote_for
How can I html-escape an input fieldin my form ? I cannot use them directly h(f.text_field ''name'', :size => 30 %) or sanitize(f.text_field ''name'', :size => 30 %) are incorrect.... <% form_remote_for :property, @property, :url => {:action => @action, :id => @property }, :loading =>
2006 Aug 11
0
SQL sort
in my list action, I setup the sort parameters as folows : .. sort = case @params[''sort''] when "login" then "login DESC" when "first_name" then "first_name DESC" when "last_name" then "last_name DESC" end ... to be used in a ''sort_link_helper''
2006 Aug 12
0
select in form_remote_for
I am trying to use a slect box in my form, but I am stuck with an error I cannot understand... here is what I wrote according to the documentation ... <%= f.select ("property", "user_id", User.find_all.collect {|u| [ u.name u.id ] }, { :include_blank => true }) %> user_id is a FK to a user (owner of the property) Associations : User has_many properties,
2006 Aug 16
0
sort_link_helper , sorting on date
I am using this helper to sort my table colums, no problem sorting on string but how can I sort a date colum ( in my DB, ) user_helper.rb ---------------------- def sort_link_helper(text, param) key = param key += "_reverse" if @params[:sort] == param options = { :url => {:action => ''list'', :params => @params.merge({:sort => key, :page =>
2006 Jul 26
0
render :update do | page | to modify a css class string...
In my booking/_form.rhtml, I have 2 <input text fields> startingdate (selction from unobstrusive calendar ) and endingdate <div> <label for="startdate">Booking Start Date</label><br /> <%= text_field_tag(''startdate'', @startdate, {:class => @startdateclass, :readonly => "readonly", :maxlength => "25"}
2006 Jun 16
0
high-level validation : error messages order
What is the rule driving the order of high-levels validations ? In my model owner.rb, I do first a validates_presence_of :name :city :phone then, If there is an email address, I validate it using : validates_format_of :email_address, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :if => Proc.new { |record| record.email_address != '''' } testing it,
2011 Jan 13
0
rails 3 Mail encoding issue
[Rails 3 - Ruby 1.9.2] I have to get email attachments ( mp4 files ) and store them... I get easily all parts using Mail ( .... <Content-Type: multipart/ mixed...."> ) attachment = mail.attachments[0] #<Mail::Part:2206885940, Multipart: false, Headers: <Content- Type: video/mp4; name=landscape.mp4>, <Content-Transfer-Encoding: base64>,
2006 Aug 01
0
SEARCHING w JOIN in one-to-ma,y relationship
I am doing a Search in my ''properties'' table on column ''name'' using in my controller : conditions = ["name LIKE ?", "%#{@params[:query]}%"] unless @params[:query].nil? this ''properties'' table has a FK (owner_id) in teh column ''owner'' to link it with the table Users... I can display the owner.name, and
2006 Aug 17
2
link_to_remote option :onsuccess, execute js function
How should I define the :onsuccess option in my - link_to_remote - tag, to execute a Js function I wrote : :success => "toggleButton(this, /db_bfilter/i);" ''this'' is the current element defined in my view : <span id="db_bfilter0" class="depressed"><%= filter_link_helper "This week" %></span> <span
2006 Aug 09
5
Action Mailer ...mail done but not received.. (or sent ?)
I am using Action Mailer as stated in RoR book... the mail seems to be correctly setup.. and I get the following log.. Sent mail: Date: Wed, 9 Aug 2006 19:54:04 +0200 From: support@alemat.com To: myself@mac.com Subject: Your password is ... Mime-Version: 1.0 Content-Type: text/html; charset=utf-8 _____________ Your username is barbare. Your new password is tDRvfzNvDF. Please login and change
2006 Jul 26
8
change text_field_tag class
in my booking / _form I have the following input fields : (startdate and endate) <div> <label for="startdate">Booking Start Date</label><br /> <%= text_field_tag(''startdate'', @startdate, {:class => @startdateclass, :readonly => "readonly", :maxlength => "25"} ) %> <%= observe_field("startdate",