Displaying 20 results from an estimated 600 matches similar to: "ToDo list examples?"
2005 Mar 29
7
Fade Anything Technique (FAT)
Has anyone used the built in FAT (Fade Anything Technique) that exists in 0.11.1
of Rails? I could not find anything in the documentation so I was wondering if
anyone has any code snippets on how they used it?
Thanks for your help.
John
2005 Dec 23
3
Intergrating delicious?
Whats the best way of intergrating del.icio.us into a RoR app?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 21
4
Models, Helpers, Modules, etc.
Hello,
I am learning rails and ruby and I have some questions about how should I go
about doing certain things.
[1]Many of my models have some functionality which is common, and instead of
duplicating it across models, I want to store it in a single file, and then
import the file into the models. Should I do this using modules, and then store
them in the `lib'' directory? What is the
2006 Mar 31
5
Changing Table Schema and Models
If I make a change to a database table, how do I recreate the model to
reflect the change?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 25
3
Rails Plugins: Why to register your own functionality with send()?
Hi there,
I have seen in the file column plugin (
http://www.kanthak.net/opensource/file_column/) from Sebastian Kanthak or
David''s acts_as_taggable plugin that to register my functionality I need to
do something like this:
ApplicationHelper.send(:include, InPlaceEditAssociations)
I am wondering why not:
(a)
module ApplicationHelper
include InPlaceEditAssociatons
end
or:
(b)
2006 Mar 12
2
Strange error: undefined method `rewrite''
Hi,
when I generate a new rails project with a simple scaffolded controller,
I get a strange error message, whenever it tries to call the url_for
method, for example:
,----
| undefined method `rewrite'' for #<Url:0xb7675e64>
|
| Extracted source (around line #7):
|
| 4: </p>
| 5: <% end %>
| 6:
| 7: <%= link_to ''Edit'', :action =>
2006 May 09
6
To Do list project?
I''m looking for a good web-based to do list app. Essentially, I''d like
to use Basecamp''s todo management system, but that''s not an option
since I can''t install Basecamp on a server I own. The information
being tracked in the list cannot be sent out of my intranet.
I would imagine that there are a couple of open source rails apps that
would meet my
2006 Mar 15
10
Scaffold with Foreign Key
I have two tables:
------------------------------
drop table if exists users;
create table users (
id int not null auto_increment,
username varchar(100) not null,
password varchar(20) not null,
firstname varchar(20) not null,
lastname varchar(20) not null,
primary key (id)
) TYPE = InnoDB;
------------------------------
drop table
2006 Mar 28
5
combining two models in one controller/view "set"
I''m going to take another stab at this question (my first one received
no replies):
I have two models:
Author
has_many: books
Book
has_one: author
I have two tables:
authors
id
...
books
id
author_id
...
I let the scaffolding fly and it created the CRUD goodness for each
model, as expected.
However, I want to have only one view/controller "set" for both
models; when I
2006 Mar 03
2
voice recording with ruby/ rails
hi all
whats there in store of ruby/rails to support voice recording feature ?
thanks
rohit
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/44230a4b/attachment.html
2006 Feb 12
1
Tests not picking up table name changes.
I have a model called Index, but the table is called Index. So in my
model, I have
ste_table_name ''index''
But in tests the fixtures are called indices, so I renamed it and
changed
>>fixtures :indices
to
>>fixtures :index
When I try use index(:first), I get a nil error. I don''t know what Im
doing wrong.
Thanks
Joey
--
Posted via
2006 Jan 31
2
NameError/Unitialized Constant With PayPal Gem
I am trying to use the PayPal gem and having a little trouble.
I installed the gem w/o any trouble:
paypal (1.0.1)
Paypal IPN integration library for rails and other web applications
When I try to use it in my controller, as follows:
def paypal_ipn
notify = Paypal::Notification.new(request.raw_post)
...
end
I get a NameError:
uninitialized constant Paypal
This error occured
2006 Apr 26
2
Rich text editing
Hi people, i just finished my first weblog, with comments, auth and
admin zone(yay!) so i was looking for a way to make a rich text editor
zone for the posts, right now im using textilize() and <br> html tags to
format the text and breaklines so hope some one can give a reference in
how to achieve that.
Already told you that this rails stuff its amazing :)
--
Posted via
2006 Mar 09
2
turn off auto increment
Hello,
I have an old table that handles sessions. the primary key is a field
called session_id and is the actual session id like "8df838303ufdfu838"
however when i do the following in the model:
set_primary_key "session_id"
and the following in the controller:
@session_hash = { "session_id" => @session.session_id, "session_user_id" =>
2006 May 25
12
RMagick install problems, advice needed
Hi guys, im trying to install rmagick on windows but i have some
problems with the post install, im using win2000, ruby 1.8.4 and rails
1.1, all working well.
Then i downloaded RMagick-1.9.2-IM-6.2.4-6-win32.zip from
http://rubyforge.org/projects/rmagick/ extracted and do the gem install
RMagick-win32-1.9.2-mswin32.gem , the gem was installed sucesfully but
when i do the postinstall.rb i get
2005 Dec 30
4
AJAX Drag and Drop Detecting Drop Coordinates
This one''s kicking me in the *(&#^. All I want to do is create a draggable
item and then detect the coordinates where it is dropped. So my first
approach was to just use the draggable_element with :revert => false, like
so:
<%= draggable_element "my_element", :revert => false %>
That works great and lets me drag stuff all over the place. In the
scriptaculous
2006 Apr 19
1
Anatomy of an application in rails
Ok guys, after doing many tutorial arond the web i realize that im not
going to learn rails well until a made my own app, so i defined what i
want and structured in a way that hope you can understand, maybe we can
help each other and define a good starting base(models and
relationships) that can be helpful for all of us.
Its a little(i think cms), it will consist of basically 4 sections:
2006 Apr 07
6
Magic Field Names - "position"
What does the Magic Field Name position do?
I was looking here:
http://wiki.rubyonrails.com/rails/pages/MagicFieldNames
And unfortunately that documentation is incomplete.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 21
4
Problem with the Authorization recipe
I just got the rails recipes book and i couldnt be more happy, but
inside the book there are some details, mostly typos but this one its
one i cant fix, im following the Authorization recipe on page 128 i
create the table and the model, the problem comes when i try to assign a
password to a user in the console, here is the output:
>> justin = User.create(:username =>
2006 Mar 25
4
dynamic set_table_name for achives
How can I pass something to set_table_name so that I can switch tables
on the fly for accessing archive data?
If I could access sessions inside a model I would do something like:
if @session[:current_period]
set_table_name "statistics_" + @session[:archive_year]
else
set_table_name "statistics_" + Date.now.year
end
But since I cannot access the session from within a