Displaying 20 results from an estimated 2000 matches similar to: "embedding a forum inside a rails app"
2006 Mar 04
4
Submitting data to two different tables with two different models
I''m very new to Rails. I''ve been reading Agile Web Dev for a while and read
up on ruby, but I''m still learning.
I designed a website for someone for an engineering shop. New projects had
to be added manually.
Well, I figured this would be a great canidate for railifying! I have the
form working perfectly, you can add your data and get it in a table, and
listing
2006 Mar 04
2
Using the rails configuration outside rails
I have a ruby class that will be used sometimes from within rails, and
sometimes from without (not in the context of a running rails application).
It will reference models within the rails app, and It may be run manually,
or may be scheduled via Cron (though I may look at RailsCron as well). I''ve
seen help on the Wiki for using models outside of Rails (like this
2006 Mar 04
2
unittest, not loading yml data
Here is my products.yml
version_control_book:
id: 1
title: Pragmatic Version Control
description: How to use version control
image_url: /images/sk_svn_small.jpg
price: 29.95
date_available: 2005-01-26 00:00:00
automation_book:
id: 2
title: Pragmatic Project Automation
description: How to automate your project
2006 Feb 21
26
Net::SMS::BulkSMS 0.1
This is the first release of a new Ruby library for the
www.bulksms.co.ukAPI which should allow simple integration of SMS
functionality into your
Ruby or Rails apps.
Sending a message is as simple as:
@service = Service.new(''username'', ''password'')
@service.send_message(''This is my message!'', ''4479123456789'')
# whats my
2006 Jul 07
2
Testing views with Hpricot
assert_tag smells bad. Hpricot smells nice (apricotty!).
Testing your views with Hpricot:
http://www.lukeredpath.co.uk/index.php/2006/07/07/testing-your-rails-
views-with-hpricot/
Big thanks to _why for a great little library!
Feedback is appreciated. rSpec integration coming soon (hopefully!).
Cheers,
Luke Redpath
contact@lukeredpath.co.uk
-------------- next part --------------
An HTML
2006 Jun 29
2
Random routing errors in 1.1.3 with Mongrel
Since upgrading to 1.1.3 on our dev box, we''ve started to see random
routing errors with our apps running under Mongrel in production
mode. The errors seem to go away after a while but come back
everytime we restart the server. This may be a mongrel problem, it
may be a rails problem (I''ve posted a bug on the trac) and I was
wondering if anybody else had had similar
2006 Jan 16
3
routing to controller inside module
Hey,
am i to stupid to find the information about how to route to a
controller in a module? Maybe module support has gone!
The controller is under:
app/controllers/admin/my_controller.rb
The my_controller.rb file looks like this:
module Admin
class MyController
def index
render :text => ''Hello!''
end
end
end
How does a route to all controllers under module
2006 Feb 22
9
acts_as_habtm_list plugin
I''d like to announce acts_as_habtm_list plugin for rails.
acts_as_habtm_list is a Ruby on Rails plugin, that can manage ordered
lists through a join-table. It is providing almost the same Api as
acts_as_list. The position column has to be defined in the join table.
You can find additional information at:
http://www.inlet-media.de/acts_as_habtm_list/
Install it executing this command
2006 Mar 15
4
help with DRY violation
I''m trying to be a good rails developer and fix DRY violations as i find
them. However, i''m trying to fix this one, i cant seem to get it to work.
I have two tables A and B that have a one-to-one relationship. Table B
belongs_to Table A. Table A has_one Table B. I''m creating instances of
Table A in different places, depending on the controller. However, for each
2006 Jun 05
1
Unobtrusive javascript...what if?
What if...you could produce accessible, unobtrusive javascript, using
Rails built-in javascript/prototype helpers, with just one extra line
of code in your layout, a plugin, and one small enhancement to the
helpers. Something like this:
[php]
<% form_remote_tag :controller => ''foo'', :action => ''bar'',
:unobtrusive => true %>
# which produces
2006 Jun 07
9
Unobtrusive Javascript for Rails
I made a brief post on here the other day about this and now I can
proudly present the initial release of our unobtrusive_javascript
plugin for Rails. We''ll be working with Dan Webb of Vivabit to roll in
much of the functionality in his own as-yet unreleased
unobtrusive_javascript plugin into a single plugin.
This is essentially a preview release and probably not suitable for
use on a
2006 Mar 09
4
cross domain cookies
Does anybody know how to access the domain of a cookie from inside rails?
I am try to integrate phpbb forums into my site and one of the things phpbb
does is store a cookie. The forums are at forums.domain.com and the site is
www.domain.com so i needed to set the cookie domain in phpbb to just be
".domain.com" so both sites can access it. The trouble is when using
cookies[] in rails,
2006 Mar 08
3
List and update values from text_field_tag fields
Hi,
I populate a couple of text_field_tag''s with data from an AciveRecord
object. Some fields are editable and at the end of the page there''s a
submit button. I want the new values to be updated in the DB but by
default my original values are stored again.
How do i go about doing this?
thanks/jens
AIM: jens.tinfors@mac.com
Skype: jtinfors
2006 Apr 13
2
Rail''s basic idea
Hallo,
what links would you recommend for an advanced programmer, who wants to
know something about the basic idea and architecture of Rails.
That''s no question for tutorials or howtos, but rather for theoretical
documents and field reports.
Can you help me?
--
Norman Timmler
http://blog.inlet-media.de
2006 Mar 22
10
Need for multiple acts_as_list
I have a model "Childmodel" that belongs_to two other models "Parent1"
and "Parent2". "Parent1" "has_many :childmodels, :order => :positionp1"
and "Parent2" "has_many :childmodels, :order => :positionp2". i.e. The
child is independently positioned within each of its parents.
This works fine and gets me the useful
2006 Mar 24
19
Storing images in Ruby
Hi,
I''d like to allow users to upload images and store those images in a
Postgres database. I''ve looked through the example in "aguile
development with rails" which suggests using the MySQL blob field.
When I wrote a similar app in Java, we Base64 encoded the file and then
stored it as a text field. Is this easy to do in RoR too? Any advice you
can give me would
2006 Feb 28
6
Log Files in View
Is it possible to display the log files in the view?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 13
3
validates_associated problem
Hello,
I have a situation where an ''employee'' belongs to a ''department'' and
have setup the relationship as follows.
class Employee < ActiveRecord::Base
belongs_to :department, :foregin_key => "department_id"
validates_associated :department_id
end
class Department < ActiveRecord::Base
has_many :employees
def validate_on_update
2006 Mar 23
3
Newbie: ''find'' across multiple relationships
For security purposes, I often want to find objects that are ''visible''.
e.g.
class Person < ActiveRecord::Base
has_many :x
end
...
@person.x.find(params[:id]) as opposed to X.find([params[:id]). Simple
enough for me.
My question:
Say we have -
class Person < ActiveRecord::Base
has_many :x, :class_name ''Z'', ....
has_many :y, :class_name
2006 Mar 21
13
Double and single quote usage in AWDWR
Hello everyone!
I''ve noticed, that the book uses double quotes almost everywhere. It is like
<%= javascript_include_tag "prototype" %>
I''ve checked the "programming ruby, 2ed" book and found that double
quotes are most suited when escape sequences and substitutions are
required. Isn''t it more semantically correct to write this code like