Displaying 20 results from an estimated 7000 matches similar to: "active record basics"
2006 Mar 25
2
where is the root?
reading through Agile Web Development with Rails, i am almost completely
through with the chapters explaining the depot shopping cart
application. everything has worked fine except for one thing, i still
have to go to http://localhost:3000/store to get to the first page. if
someone just goes to http://localhost:3000/ it will still show the
welcome page for Ruby on Rails. what if i want some
2006 Jun 07
7
file_column image versions
does anyone know much about resizing different versions of images with
file_column? i tried it and everything works fine, but my question is
can you do more than just make sizes with a version of image? i''m
working on a photo album and i would like to resize the image to a
medium size, but create a thumbnail as well and crop anything left to
make the thumbnail a perfect square.
--
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 Jul 05
5
ok, lightTPD is installed... how do i use it.
i used the hivelogic article to install ruby on rails to my mac:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
everything works great using the script/server command, but isn''t that
still using WEBrick? how do i server my apps with lightTPD?
i tried following the instructions given here:
http://duncandavidson.com/essay/2005/12/railsonlighty
but have had no
2006 Jun 20
5
ActionMailer to send to multiple people
I''ve been working with ActionMailer for a few days and finally have a
pretty good grasp of it. In the book I''m reading, it shows how to send
to multiple users or an array of users.
Is there a setting or some configuration I can do to send the email to
each person separately, or would I just need to loop through each user
and send one email at a time?
What is the best way to
2006 Jul 15
4
learning from typo.
i have a copy of the typo source on my desktop that i am going through
just to get a better understanding of the rails framework and ruby
itself. i''m fairly new to everything so it has proved to be very helpful
and very inspiring.
i''m stuck on a part though. i was trying to figure out how everything on
the sidebar works. i found the components folder and started looking
2006 Apr 28
5
please explain web services
could someone explain some of the uses for a web service. i''m reading
about how to make them, but i''m still not quite sure what they''re good
for.
i have multiple rails apps that i would like to pass user information
back and forth to. i''m not sure if something like this could help me or
not.
thanks
--
Posted via http://www.ruby-forum.com/.
2006 May 22
1
configuring apache with scgi
i had been trying for weeks to get fcgi to play right with apache. i
finally got it working, but it''s far from stable. it was recommended to
me that i should try using SCGI and that it is much easier to set up.
being new to this stuff though, i''m not sure if there''s a lack of
documentation or if there are some things that are just assumed and not
known by a noob
2006 Jun 06
3
help with date formats
i have a datetime field in my database that i need broken up. i want to
display the date and the time in separate places. i tried looking
through the api, but couldn''t find what i was looking for.
if someone could please point me in the right direction to format dates,
that would be great. thanks
--
Posted via http://www.ruby-forum.com/.
2006 Jul 16
9
acl_system help is needed
i found Ezra''s acl_system plugin yesterday and i am trying to figure it
out.
based on the simple instructions on the site, it does exactly what i
need but i''m getting some errors when i try to use it:
NoMethodError in UsersController#index
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.roles
i am pretty new to rails and
2005 Dec 15
2
.rhtml in the model rather than the controller
Hi, I''m developing a mini-programming language for research surveys.
[code]
question S1 {
label: The first few questions are just to help us categorize you.
label: Do you or does any member in your household work for... (MARK
ONE ONLY FOR EACH.)
grid {
col {
1 Yes
2 No
}
row {
1 An advertising agency
2 A public relations company
3 A marketing research firm or
2006 Mar 27
3
any luck installing RoR with apache / cpanel setup?
i just went through installing RoR on a cpanel setup and everything
seems to work except for deployment. i go through the entire process of
setting up a new rails app on a cpanel account and i get:
Not Found
The requested URL /testapp/index.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.
2006 Aug 07
2
converting pdf to images
i am working on a catalog for our customers to order printing. i have
worked a little bit with imagemagick and pdf_writer. currently i am
uploading a pdf and an image for the preview of the file. i''m just
wondering if there is a way to convert a page of the pdf to a jpeg so
that i only have to upload once.
--
Posted via http://www.ruby-forum.com/.
2006 Jun 19
1
pdf simpletable help needed
i am trying to generate a pdf of all of the users in an application that
i have built. i am still pretty new to ruby and rails so i don''t know
the best way to go about it.
here is my controller code:
require ''pdf/writer''
require ''pdf/simpletable''
class ReportsController < ApplicationController
def test
_pdf = PDF::Writer.new
table =
2006 May 30
3
plz help ~> new to file_column
i am trying to figure out how file column works so i can play with it a
little bit on my site. i have installed it as a plugin to my rails
application, copied the snippets on both model and view but when i try
to run the page, i get an error saying "undefined method
`file_column_field''"
did i do something wrong or is something not installed?
--
Posted via
2006 Apr 12
1
how to use toggle_effects
i''m playing with the toggle_slide effect right now which is great. the
problem i''m having now though is figuring out what state the div starts
in. i want it to be hidden and slide in first, but it always starts out
visible and slides out first.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 21
1
RoR on Jaguar anyone?
I installed RoR on my Mac with Tiger10.4. Everything seems to work fine.
I installed it on my other mac using 10.3 and at first it worked fine,
but when I started using apps with a database, sometimes the server
crashes on certain pages. I''ve been trying to locate the source of the
problem, but the crashes seem pretty random.
I''m wondering if this has anything to do with the
2006 Mar 31
13
validation with in_place_edit_for
i''ve got an in place edit text box for some of my fields. my model has
validates_presence_of for the field but nothing happens. it works fine
in the scaffold when using the edit page, but nowhere else.
anyone have a solution to this?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 26
5
one authentication for multiple rails apps
i am in the process of taking all of our php applications for the
company i work for and rewriting them in ruby on rails. just to help
with username and password management, i had a program where we could
create a user and then assign what other programs they had access to, so
that they would only have to log in at one place and have access to all
of the software.
i''m not sure of
2006 Dec 04
5
ruby on rails ecommerce tests are failing, but why?
i am working through the Beginning Ruby on Rails Ecommerce book and on
page 101 where it is talking about integration tests, i run
test/integration/book_test.rb and it fails giving me the following
error message:
1) Failure:
test_book_administration(BookTest)
[test/integration/book_test.rb:45:in `add_book''
test/integration/book_test.rb:11:in `test_book_administration''