similar to: Tutorials

Displaying 20 results from an estimated 11000 matches similar to: "Tutorials"

2006 Aug 14
2
ActionPack: number_to_phone error
Question about the number_to_phone function as provided by rails in actionpack: http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html If I do this in my controller: num = number_to_phone(params[:phone_number]) I get this error: undefined method `number_to_phone'' for #<TicketsController:0xb7a2bfcc> Whereas if I do this in my view: <%
2006 Aug 25
7
acts_as_ferret with conditions
Hello guys, Having a slight problem with acts_as_ferret, specifically using a condition. I have the following code @results = SupplierProduct.find_by_contents(params [:search], :conditions => [''area_id = ?'', @area]) and it seems the condition isn''t being applied. Does anyone have any pointers? Cheers, Alastair ------ Alastair Moore Standards compliant web
2006 Aug 26
3
order of saving/validating
Hi guys, I''m trying to do some validation on an image upload. Basically I have a model, Property, which has_many :property_images. I need to check that one image has been uploaded at least and so it was suggested I checked the number of images uploaded - @property.property_images.count > 0. Makes sense. I''ve added a validation on my Property model, like - def
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 14
1
Rails Live CD
Hi Many on this board may already be aware of this, so for those who are not Just ran across this, burned it and now playing with it. Rails Live CD - Based on PCLinuxOS http://www.pclinuxos.com/news.php I''m just starting out with ror. maybe other newbees might find this of some interest. Clark http://sgetty.ath.cx -- Posted via http://www.ruby-forum.com/.
2006 Jul 29
1
Problem starting push server in Jugganaut
Hi All, Im playing around with Jugganaut but stuck at the first step. Seems the jugganaut push server requires json (which I have installed) but it cant find it. Following the docs, I have installed json and then try to run the push server. jonathan $ ruby script/push_server script/push_server:37:in `require'': no such file to load -- json (LoadError) from
2008 Sep 16
7
id in form_tag for update
I get an error saying Rails can''t find the post because I don''t have an id when doing the update. I have: <% form_tag ''/meetings/update'', :id => @calendar.id, :onsubmit => ''return ValidateMeeting()'' do %> Is this wrong? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You
2010 Jul 27
3
Rack in Rails
Does Rack come with Rails or do I need to install the gem? -- 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 to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2009 Apr 24
4
Long string in crypting
I use a solution to crypt a string that I found using OpenSSL. But the crypted string becomes very long, too long for a varchar 255 to hold it. What can I do to make it shorter? Or should I just use text as column in the mysql db? public_key_file = ''lib/public.pem'' public_key = OpenSSL::PKey::RSA.new(File.read(public_key_file)) @encrypted_string =
2006 Aug 24
2
Handling sub-domains
I want users to have their own landing pages: http://username.domain.com. Since this is dynamic (any user will have a subdomain), is there a way to do this without creating a DNS record for each of them? Can you DNS records be dynamic? -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com austin.govella-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007 Feb 23
11
Problems getting mongrel service working
Hello list! I have mongrel service 0.1.0 working on my current production machine. Upgrading to a new server and also moving to mongrel service 0.3.1 has not worked yet. I am hoping someone will have an idea as to why. I have mongrel installed properly (I think): C:\rails\igacc>gem list --local *** LOCAL GEMS *** ... mongrel (1.0.1) A small fast HTTP library and server that runs
2010 Sep 21
6
Iterate HashWithIndifferentAccess
How do I iterate a HashWithIndifferentAccess? I need to set the order using a sortable_element. -- 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 to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send
2008 Aug 31
1
File field becomes String
I have a file_field that works fine when sending up a file. But when making an update the same field behaves like a String, and consequently the params[:file][:attachment].content_type fails. Why is this? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2008 Dec 22
1
How do I use GDB to debug Litespeed Server?
How do I debug Litespeed Server on Mac OS 10.5 with GDB? I haven''t a clue on how to proceed. I haven''t used GDB before. -- 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 to
2008 Sep 03
1
request.remote_ip returns kok + ip
What is this? When I use request.remote_ip in my rails app and print it to a web page it says "kok" and then the ip. What is that word there for? -- 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
2006 Aug 31
1
Peculiar validation error: undefined local variable or method 'fieldWithErrors'
Hello all, I''m submitting a form with the following field - <%= p.text_field :postcode, {:class => ''inputMedium''} %> and on submitting the form I am getting this error - NameError in Property#create Showing app/views/property/sell.rhtml where line #52 raised: undefined local variable or method `fieldWithErrors'' for #<Object: 0x1de968>
2006 Jul 14
6
Don''t understand :: in ActionController::Base
Maybe this should apply to Ruby forums directly, but I''ll try here. I understand the concept of classes and subclasses thanks to the excellent "Programming Ruby - The Pragmatic Programmer''s Guide". However, I don''t understand what :: signify in terms of inheritance, parent and child in e.g. ActionController::Base -- Posted via http://www.ruby-forum.com/.
2007 Feb 20
2
service::start borken
Hello Mongrel Users! This is my first post! Is there an expected release date for the fixed version of mongrel_service that will resolve the missing service::start command? I would love to use the much improved features of the new mongrel_service, but I haven''t been able to yet. I haven''t figured out how to follow Zed''s advice on a previous thread to just use the
2007 Oct 17
15
Any tips on teaching BDD with RSpec?
Hi I hope this is not OT. I''m training my replacement at work to do BDD Rails development. He''s done a CS/maths degree but has no professional programming experience, so he''s never NOT done a project without BDD. In a way I am jealous of his unspoilt situation :) I''ve gone about things this way: * first teach him some Ruby (he did mainly Java at
2007 Oct 30
7
RSpec Texmate Bundle errors
I''ve the same problem as Alastair when running rspec command : http://lists.macromates.com/pipermail/textmate/2007-October/022585.html ../spec/mate/runner.rb:34:in `run'': undefined method `parse'' for Spec::Runner::OptionParser:Class I fixed this for me by changing the offending line to : ::Spec::Runner::CommandLine.run(argv, STDERR, stdout) (see