similar to: Rails Newbie Forum?

Displaying 20 results from an estimated 4000 matches similar to: "Rails Newbie Forum?"

2006 Mar 09
5
link_to_remote id or class
Can anyone out there tell me how to add a class or id property to a link using link_to_remote? I''ve been banging my head on this for far too long. Thanks Clint
2005 Oct 14
7
validates_confirmation_of not working
Hello, I''m having a weird problem in my user model. For the change_password method I have the following: def change_password(oldpass, newpass, confirmation) oldpass = self.class.myhash(oldpass) reload passhash = self.password self.password = newpass self.password_confirmation = confirmation if valid? and oldpass == passhash save! else # valid?
2006 Mar 22
4
hivelogic lighttpd install
Hey group, I went through the Hivelogic install and it works great. Now I''d like to run lighttpd as a daemon, but when I go into the /usr/local folder where everything was installed, I don''t see a lighttpd directory where the config files would be. If I try "lighttpd start" from the command line, I get an error that says "No configuration file available".
2006 Feb 23
12
how to output something from within <% %> tags?
simple question: how do I output something from within <% %> tags? e.g. like ''echo'' in PHP. I thought it would be ''puts'' or ''print'' but neither seems to work. right now I always close the %> and open a <%= which is tedious. -- Posted via http://www.ruby-forum.com/.
2006 Feb 27
5
Localization: word wrap in tables?
I am a Rails noob, working on bringing a legacy db system into the 21st century. I want to localize the UI for two languages (EN/JA). Since I am already using the salted user system, I have been playing around with T. Fuchs'' localization module. Nice and simple, already up and working. But here''s the problem: Japanese text is wrapping weirdly in table cells. I could set
2006 Mar 17
3
Updating Table without ID Column
Hey All, I''ve been having a slight problem updating attributes for a row that matches something other than it''s ID...For ex: My table that has 3 rows..ColumnID, ColumnTitle, and ColumnDescription. I want to update a row in that table WHERE CoumnTitle = @myvar....But whenever i run update_attrbutes[:mytable] it''s looking for an id for the record when i need to to
2006 Feb 25
7
Help with DRY: too much code in my view
I''m a newbie to rails, and really to the whole DRY and MVC thing as well, except where I accidentally fell into things doing it my own way in the past. I''ve got a fairly complex DB structure I want to create an interface for using Rails. Getting simple tables to display, edit, save, not too much problem there. But where I''m having trouble is figuring out where to
2008 Jul 08
3
undefined method `name' ...........
Hi Community.... I''m new in this game, so this might be a easy question, but I have done my google, without result, so I will try this.... I''m learning ROR, and I''m using Patrick Lens ''Ruby on Rails'' book. (This is written for ror 1.x - and I''m using NetBeans 6.1 - ror 2.x - this might be the problem...) But... I have made this
2006 Mar 05
7
whatever happend to unobtrusive javascript in Rails ?
Don''t get me wrong, JavaScript/Ajax helpers in Rails are a huge timesaver and they have helped me to finally overcome my irrational aversion to js libraries like prototype and such. However, all this goodness seems to come at quiet a price. The resulting code is littered with inline JS, including ubiquitous script tags and onload attributes etc.. It seems that just when i found
2006 Nov 14
16
memory issues -- mongrel part of the problem?
Hi. I''m a fairly new mongrel user and have a scenario that I wanted to run by you all, see if anyone''s synapses connect -- mine def. aren''t! I''m running a fairly simple rails app through a mongrel cluster (2 mongrels). This site is consistently sloooow -- memory on the server is regularly paging (and shouldn''t be). ssh-ing in and running top shows
2005 Jun 29
14
Unobtrusive scripting?
Currently, pages generated by Rails tend to be sprinkled with JavaScript. This happens, because the various helper methods work only locally and simply append to the output. In order to hide the JavaScript away, rendering would probably have to be changed. A way I can think of is that a page-specific script is included in the head of the document and JavaScript code is not written to the
2005 Dec 30
2
Rails resources, blogs, forums, etc?
Hi everyone, Already in the span of a week or so I''ve learned exponentially from your collective minds. So, first off, thanks for being such a good community. In addition to everything here i''m wondering what the top RoR-related blogs are - abundant with content and frequently updated. Are there any that would be consensus among rails enthusiasts? The same with web-based
2006 May 10
7
AJAX effects
I was at http://rails.techno-weenie.net/ and I like what ajax does when you click on "login" how can I do this on my own website? Is this with the defualt JS libary? -- Posted via http://www.ruby-forum.com/.
2006 Jan 13
2
Change Password with acts_as_authenticated
I want to have a form to change a users password. I can''t figure out what the method in the controller should look like. I tried @user.save and @user.update_attributes, but can''t get it to work. My Form: ############################## <%= start_form_tag :action => "update_password", :id => @user.id %> <%= password_field ("user",
2005 Dec 11
62
PROPOSAL: The list needs to fork (desperately).
I''d like to propsoe that the RubyOnRails mailing list forks into three lists. PROBLEM: * The list is getting swamped with traffic, making it hard to use and even harder to follow. * Many, many messages get lost, with no reply. * Due to the overwhelming traffic, it''s hard for beginners to get the help that they need, since their messages get lost in the shuffle, and
2006 Feb 08
8
Liquid with database?
Hello, Just wondering if someone here as successfully ported Liquid to use with a database. I would like to try it out but not sure how Liquid integrates with current templates. Thanks Frank --------------------------------- Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jan 11
2
Good OOP and JS books / tutorials? Looking to teach my team
Can anyone recommend good books, online tutorials, or any other learning materials for Javascript - specifically Object Oriented Programming using JS? I want the rest of my dev team to be able to help me code in JS, specifically using prototype and scriptaculous. I''ve been using JS for so long, and I kinda "grew up" on OOP programming but my whole team is Coldfusion
2005 Dec 21
1
ustack() issues && correlating SIGSEGV activity?
Howdy, I was playing around with the malloc/free D script provided by Philip Beevers: http://www.opensolaris.org/jive/thread.jspa?threadID=4224&tstart=15 And decided to change the free:entry probe from: pid24169::free:entry / sz[arg0] / { printf("Freeing %p (size %d)\n", arg0, sz[arg0]); sz[arg0] = 0; } to: pid24169::free:entry / ! sz[arg0] / { printf("[ *
2006 Aug 10
6
Login Restfully
In DHH''s keynote, he alluded to doing logins with REST. Has anyone implemented this, and if so, would you mind elaborating on how you did it please? Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2006 Feb 14
4
Fine grained access control
Hi, I''m building an application which is going to require quite fine grained access control. Deciding if a user is allowed to access an action will probably require checking quite number of different rules, so a simple role-based system won''t be flexible enough. The approach I think I will try first is, if it''s possible, to ignore permission issues inside the