search for: ericgoodwin

Displaying 20 results from an estimated 47 matches for "ericgoodwin".

2006 Feb 03
6
Saving a User Object while in the Address Controller
...ve keeps on returning false. Any ideas why? I can access different attributes of the user, so I know that the proper user is getting returned from the find. In my user class I have attr_accessible :address_id so I should be able to access it, shouldn''t I? Cheers, Eric -- Eric Goodwin ericgoodwin.com
2006 Feb 13
11
ROR code syntax highlighting on blog?
I am interested in putting the cool syntax highlighting for ROR code. What''s the best way to do that? Is it using textilize or another formatting language? Or do I need special stylesheets? Any assistance is appreciated. Thanks Frank --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part
2006 Feb 23
11
Need help for simple RoR code.
I try a ''hello world'' demo here,It only show a ''hello word'' on web page you can see all my codes and structure here http://www.smtservers.com/demo/ I want to access the ruby app like this http://www.smtservers.com/demo/say/hello but I get a 404 error. Please let me know what problem the code have I am new for RoR. I am not sure the site structure is ok or
2006 Mar 25
11
Firefox ''Rails Mailing List'' search engine plugin
...t;sourceid" value="Mozilla-search"> <input name="forum" value="13830"> <input name="local" value="y"> <input name="query" user=""> </search> If you want the auto install with the icon. http://blog.ericgoodwin.com/articles/2006/03/25/firefox-rails-search-plugin Happy Seaching! -Eric
2006 Jan 27
5
Multiple Apps running under Lighttpd with scgi on a Windows Box ... possible?
...b/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:402:in `run'' from c:/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service:61 from c:/ruby/bin/scgi_service:18:in `load'' from c:/ruby/bin/scgi_service:18 Thanks. Eric -- Eric Goodwin http://www.ericgoodwin.com
2006 Feb 03
2
Calling a javascript function after loading a partial with rjs
...s what I am doing. I have a partial that gets updated via. an ajax call. When the partial is updated I want to call a javascript function ( enableTooltips ) which will then add tooltips to my links in the newly updated partial. Any help would be greatly appreciated. Thanks, Eric -- Eric Goodwin ericgoodwin.com
2006 May 11
6
Dynamic data passing thru Rails to Flash
Hi, I am using Flash Dashboard and 3 sets of listbox. When i change my first list box say name i need to dynamically change the second list box and from the second list box when i choose an name i need to change the content according to this in the third list box. How can i pass this datas from database in rails. thanx g.balaji -- Posted via http://www.ruby-forum.com/.
2006 Feb 10
4
How to do a find with conditions that contain an OR
Hi, I''m trying to do a find with a condition that has an OR on the same column. Say I only want to use find() but not find_by_sql(). I reduced my problems into the following: values = [] ... # filling up values from params Order.find(:all, :conditions => ["(action = ? OR action = ?) AND price = ?", values] For example I
2006 Mar 01
1
Net/Https & active_rbac & Debian Sarge
...https.rb not included in this build? How can I get around this? I know that http://www.sgtpepper.net/hyspro/deb has a 1.8.4 package but I don''t know how stable it is or if I should even need to upgrade. Any help would be greatly appriciated. Cheers, Eric Goodwin -- Eric Goodwin http://ericgoodwin.com
2006 Feb 28
5
Getting number of days in a month
In PHP, there was an argument you could pass to the Date function to get the number of days in the current month: echo date("t"); // Outputs "28" for February I don''t see anything like this in Ruby/Rails. Right now, I''m using a very ugly line to pull the last day of the month: @number_of_days = (Date.strptime(Date.today.strftime("%Y-%m-01"))
2006 May 12
4
POST vs GET
I read in the Agile Rails book that I should avoid GETs for destructive actions. I notice that on 37signals'' Backpack web site, deleting an item in a list is accomplished with a simple click on a picture of a trash can. Is this a violation of the POST/GET rule noted above, or is there some way to make a clickable link send a POST? Ben
2006 Mar 30
5
Has_many :through problems -- please help
I''m having a lot of trouble with has_many, :through and could really use some assistance. I''ve got a User and Group class. Users can subscribe to groups, and groups should know who''s subscribed. I''ve got a join table (group_subscriptions) with group_id, user_id, and it''s own id element. Users has "has_many :groups, :through =>
2006 May 11
2
Rendering
I want to do something like this: <%= link_to "Attack!", :action => "attack", :id => session[:user].id, :op_id => users.id, :update => "attk-div",:postion => "top" %> But, What should I user link_to will redirect on click so what action do I do? -- Posted via http://www.ruby-forum.com/.
2006 May 11
1
Doctype -- utf-8 -- html vs xhtml
I was simply trying to write the DOCTYPE line at the top for UTF-8 and got confused. What doctype do I use with rails for utf-8 files? If I put in all the damn closing tags on paragraphs and hr and br and all that will the stuff pass xhml inspection, or will rails insert something I haven'' yet noticed. Warren -------------- next part -------------- An HTML attachment was
2006 Feb 12
3
Timestamp -> Date
I have a timestamp in a row in my MySQL DB, and I can output the timestamp, but what method could I use to turn the timestamp into the date, like the PHP function date()? Also, can I have the link to any place that lists all RoR Methods/Classes that is not the official one? If no other ones exist, no problem :) -- Posted via http://www.ruby-forum.com/.
2006 Feb 12
3
AJAX to a table row
Hello- I''d like to throw a little AJAX into a table to allow the user to edit a single row of data inline rather than moving to another page. The row (which has N columns) would be swapped out for a row which has a single column (colspan="N") and the form inputs would be in that row. My question is, is this legal HTML? I can''t find anything that says either way.
2006 Apr 09
7
The search on this forum should improve to improve the forum
The search on this forum should improve to improve the forum -- Posted via http://www.ruby-forum.com/.
2006 May 10
2
accessing uploaded file on filesystem question.
Hi, I''m able to upload files onto my webserver filesystem but I had a question regarding how I''d go about accessing them using the <img src="..." > tag. If my files, i.e pictures, are being uploaded to public/images/<dir>/filename.jpg, then should I store the entire path, or just the picture name in my database table? I would imagine storing just the
2006 Jan 27
4
testing for nil numeric value in find
In the agile/rails tutorial book the following construct is added to products.rb. def self.salable_items find( :all, :conditions => "date_available <= now()", :order => "date_available desc") end Now, I wish to extend :conditions => to exclude products that have a nil value for the price. I have tried different syntax
2006 Feb 28
6
scgi+lighttpd+windows - why wont it work?
two problems, pls help...I''m under big pressure at work to fix this! I''m having trouble getting scgi and lighttpd running on windows - here''s what I did: On Win XP, I installed ruby, rubygems, and setup my rails app. All works fine with webrick. I then did: gem install cmdparse and gem install highline (as required for the scgi_rails gem according to