Displaying 5 results from an estimated 5 matches for "rawb".
Did you mean:
raw
2006 Aug 09
11
Query Offset Parameter problem
Greetings,
I''m trying to make a simple logging application that just displays the
last few rows of information in the log. In order to do this, I am
trying to use the ":offset" option for find. However, I am not getting
the results I expect.
For testing purposes, the query is being run against a table (MySQL)
that contains 11 records. According to the RoR documentation,
2006 Aug 15
5
Hard time understanding the differences between "def self.foo" and "def foo"
Hi guys,
I''m having a little trouble understanding the differences and knowing
when to use "def foo" and "def self.foo" in my models. I don''t quite
understand them and was hoping someone could explain or give me
examples on how to use the "self." properly.
For example, I had "def foo" in my model "Account" and in one of
2006 Aug 12
7
Redirect back to last page?
I have a few pages where a user may do something (add tags, login, etc)
and I would like to redirect them back to the last page they were at
before calling that action. Is there an easy way to do this?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 17
3
What''s the best way to stop repeating this line in my controller?
Hi,
I am trying to follow the "DRY" principle and came across a problem.
I am working on a small ajax task manager, and right now in the index
page which renders the list, I have (for example, in the Lists
controller):
def index
@lists = List.find(:all)
end
Now within the controller there''s also a list_add action which is
called via ajax..
def list_add
if
2006 Aug 16
44
Goodbye for now, RoR
I started a php-based website a few months ago with a buddy of mine on
netfirms.com. I was perusing their knowledge base and I came upon a
quick-start for something called Ruby on Rails. Since then I have immersed
myself in RoR. I''ve done the tutorials, I''ve purchased the books.
But, I could never get even a sample RoR app to work on netfirms. 500
server errors.