similar to: directory structure on typo

Displaying 20 results from an estimated 5000 matches similar to: "directory structure on typo"

2006 Aug 04
3
forms and relationships
i''m still pretty new to rails, and while i''ve been able to hack my way into having it do what i want so far, i''m not happy with the way my code looks. on top of that, i''m sure that what i''m doing prlly isn''t the most efficient either. one of my biggest problems is probably to do with using relationships and forms together. i''ve
2006 Feb 27
8
Change Bit Value To Text When Viewed
Hey All, very simple question for you folks ;) I have a @commutes object that for each record there is a bit value set (0/1) to denote if an accident occurred. What I want to do is have it display "Yes" or "No" when I view the listing of commutes. I can get it to display the bit value just fine with <%= commute.accident %> but how can I get it so that when a record with
2006 May 25
21
Converting HTML into an Image
I have this challenge of converting a bit of html into an image file and then shrinking it into a thumbnail. The shrinking part shouldn''t be too bad, but what advice can you give on converting the html to the image? My thinking is that I will need to convert it to postscript or latex and then convert it to an image from there. Is there an easier / better approach? Michael
2006 Apr 19
5
new article up at Linux Journal
http://www.linuxjournal.com/article/8993 If you''ve got feedback, requests for coverage, etc. please let me know. I''ll try to respond in an upcoming column. -- thanks, -pate ------------------------- http://on-ruby.blogspot.com
2006 May 17
4
Knowing id before a call to save
Hiall, Is it possible to find out the value for the id field of any record before it was actually saved, i.e. if new_record? returns true? To motivate this: I have a parent model which should not exists alone but needs a few other (child) models to be initialized whenever a new record of parent is instantiated. Needless to say, the child models need the id of the parent model as foreign key. I
2006 Jan 30
14
RoR admin system
I''m preety new at RoR (and programming), I tried a few tutorials, and really like the RoR simplicity, but my knowledge of the framework still isn''t very good (to be true, i understand the basics, but not everything that''s in the tutorials). But still I''d like to create a website which has: - front end interface (with no edit functions) - admin interface
2006 Feb 17
4
link_to_remote doubles border size
I have a div with a border around it. I use link_to_remote to change the content, and the border size doubles. Example: <div id="test" style="border:solid; border-width:5px"> <%= link_to_remote("Test", :update => "test", :url => { :controller => "tester", :action => "test" }) %> </div> Even stranger, if I
2006 Feb 25
5
WEBrick Bad File Descriptor Error
All of a sudden I have a wierd error when running script/server on a Windows XP box. Webrick is failing with a bad file descriptor error. I''m sure it''s conflicting with something in my enviornment, but I cannot figure out what. I googled the issue and haven''t been able to find any answer for it. Although, I did find a workaround. If I''m using a port above
2006 Apr 13
10
Code Igniter
Hi all, I was just made aware of this: <http://www.codeigniter.com> I wonder where the inspiration comes from? Lots of very similar concepts there ;) I''ve only watched the intro movie so far, but very interesting. jt
2006 Apr 08
5
rails.el on Ubuntu
Anybody who have a working .emacs (++) for Ubuntu (or Debian) with the newest emacs-rails (v.0.3). I have especially trouble with getting HTML Mode Snippets to work. - Henrik
2006 Jun 01
3
Requiring /lib files in a cross-platform way.
Hi. When you have library foo.rb in your Rails project /lib directory, I notice that on some platforms - e.g. Windows with WEBrick as a server - you can require it by simply: require ''lib/foo'' However on other platforms - e.g. Debian with Lighttpd server via FastCGI - this does not work, and you need to specify RAILS_ROOT explicitly, like this: require
2006 Mar 30
25
TextMate for Rails development -- why?
Greetings, I am curious, I see quite a few references to using TextMate for rails development. I downloaded TextMate and used it for 30 days. I do not see what everyone is raving about. Snipplets are nice, but other editors do the same thing, some with much more power. Can anyone tell me what makes people draw to TextMate? Maybe I am missing the whole reason, I''d really like to
2006 Feb 20
7
Native erb lacks -%>, where is Rails'' erb?
Native ERB in ruby, and eruby, seem to lack the -%> feature for suppressing trailing newlines. Thus erb -n script gives errors. Where is Rails ERB so I can invoke it directly? Thank you Hugh
2006 Apr 27
10
OT -- billing and estimating, good resources?
OK, so for most of my career, I''ve done everything on an hourly rate. Recently somebody kind of pointed out that if you bill by the milestone you can work on multiple projects simultaneously without any ethical problems, so you get increased efficiency. Does anyone have any good advice/URLs/books on how to do cost estimates on a project? I''ve really always kind of avoided the
2006 May 14
4
script/console on windows
Hiall, When I try to run script/console from a windows command line like f:\rails_app\ruby script\console I get the following error: F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- initializer (LoadError) from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require''
2005 Dec 29
14
Rails 1.0 - Agile book still good?
I''m new to Ruby and RoR but excited to learn what I can do with RoR; I have Pickaxe second edition and want to get "Agile Web Development with Rails" but I''m aware that the book was published some while before RoR version 1.0 was released. Has a lot changed since then, and would I therefore be advised to wait for a second edition of AWDwR? Many thanks in advance
2006 Jun 28
8
[OT] rimuhosting and VPS experiences wanted
All - I am considering signing up for hosting at rimuhosting for rails, PHP, and email, and would like to hear some personal experiences with their service, especially compared to shared hosting services like Dreamhost. Please email me off-list at ken.liu.pub [at] gmail.com. Thanks Ken
2006 May 25
13
.NET developer trying to understand some Rails basics
Hi All, I''ve been a ASP.NET developer for the last few years and consider it to be a pretty productive environment to work with. However, the object-relational mapping (ActiveRecord) and simplicity of the Rails framework and Ruby in general really appeals to me. .NET currently doesn''t have something like Rails'' ORM - atleast not out-of-the-box. Here''s my
2007 Mar 28
14
Autotest
Is anyone using rspec with autotest? Scott
2006 Apr 24
12
setup a staging site?
Hi, i''m wondering how to setup a staging site for my RoR app. Right now i run webrick on my laptop to develop, then i svn commit my changes to the production server. However i need to make my development environment available to others and not just for me on my laptop. I have RoR setup on a hosted vps server which runs in production environment. Its on apache 1.3 and mysql. How can i