Displaying 20 results from an estimated 10000 matches similar to: "Creating a rails project"
2007 Feb 04
10
where to install script.aculo.us ?
I''d like to try autocompletion, and my understanding based on AWDWR:2,
and on various website tutorials, is that I should install the
script.aculos.us
javascript library.
My question is how to do that. The instructions on their site tell me
to "Put prototype.js, scriptaculous.js, builder.js, effects.js,
dragdrop.js, slider.js and controls.js in a directory of your website,
2009 Aug 06
18
Best Practices Question
Should models call action mailers, or should those calls always
originate from controllers? For example, should user.forgot_password
send the email, or should the user_controller.forgot_password?
Just looking for some opinions...
Thanks,
Tom
2009 Mar 01
15
Ajax in Rails
Hi All,
New to the group, and new to learning rails.
I''m having some trouble, i''ve done a few tutorials on creating some
small apps with rails and am now starting to play around myself.
I''ve been trying to create a simple form which when a user enters any
data that data is displayed as a preview elsewhere on the page
instantly, just like when creating an advert with
2009 Feb 25
5
[Cucumber] pretty html output?
Cucumberists (and RSpec Classic users ;):
How can we convert a Cucumber feature file into HTML with syntax highlighting?
Not the test-runner output; that''s preprocessed so it does not match the input
file...
Tx!
--
Phlip
2009 May 10
4
How to generate UML diagrams from existing ruby code?
Hi,
thanks for reading. Till now, I''ve used railroad to visualize my
models. But as far as I can see, there''s no possibility to add
information about the model class methods. Methods are only added to a
diagram, if you visualize your controllers. Is there a way to change
this behavior?
I''ve looked out for something else and found ''ruby-uml'', seems to
2007 Mar 26
2
Issue generating XML with hyphenated element names
Hello...
I''m trying to generate and XML file using .rxml and I''m having a
problem with element names that contain a hyphen. Here is a chunk of
the .rxml file:
xml.instruct! :xml, :version=>"1.0"
xml.properties do
@properties.each do |p|
xml.property do
xml.location do
xml.street-address(p.street_address)
xml.city-name(p.city)
..
end
end
end
2009 May 14
6
Generated test files and bad require 'test_helper'
Why do the generated test files have: require ''test_helper''
It cannot obviously find the file because it''s located in a
subdirectory. That''s annoying.
--
Posted via http://www.ruby-forum.com/.
2009 Feb 21
10
Problem with test_truth
hello all,
i have a problem with test_truth.
require ''test_helper''
class MyDataTest < ActiveSupport::TestCase
def test_truth
assert true
end
end
this should ok without failures or errors. but it failure:
1) Error:
test_truth(MyDataTest):
ActiveRecord::StatementInvalid: Mysql::Error: Table
''alldataserver_test.members'' doesn''t exist: DELETE
2007 Jul 07
6
Help in upgrading from 1.1.6 to 1.2.3
Hi, I was developing a rails app with version 1.1.6 that just worked
fine.
I decided to upgrade to 1.2.3 and then, I keep getting that horrible
message:
"Application error
Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html"
Now, before starting script/server I modiffied config/environment.rb
and
2007 Mar 05
2
Help with rjb
I am trying to do file i/o with rails and rjb and can''t figure out a
way to make this work. Here''s what I am trying to do:
- a user uploads an image to the server via a standard html form:
<%= file_field("blog", "attach") %>
- this returns a ruby File object to the controller in
params[:blog][:attach]
2006 Oct 14
4
Editable data grid
Does anyone have a good recommendation for implementing an editable
data grid (like a spreadsheet) based on a dbase table/model?
What I would like is something similar to Google Spreadsheets.
Thanks,
Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2007 Mar 04
2
Installing
I have skimmed through many web pages, how to''s and editorials, my
final conclusion is that the programming language for this particular
part of the program is going to be Ruby.
There are many reasons:
1. Apple will support it in 10.5
2. There seems to be a lot of support for it in the Mac community
3. Ruby developers seem to be Mac people.
4. There is better documentation than
2008 Sep 06
6
Active record question
I''m not quite sure how to get at this data using Actrive record.. I''m trying to get all the appointments made for a particular project. I''m using four models, Projects, Tasks, Resources and Appointments.
The SQL gets me what I''m looking for but how do I do it using Active Record?
Select a.* from appointments a
join resources r on r.id = a.resource_id
join
2008 Feb 19
20
Ruby on Rails and MS Access
How do I connect an existing or new Access database with Ruby on
Rails?
I am new to Ruby on Rails and a tutorial I am going through mentions
using MySQL but I don''t have MySQL and only work with MS Access.
Is MySQL available for free on the web? Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2007 Feb 13
5
default database schema and relationships
hi everyone..
i''m a high school teacher who wrote a webapp in PHP and MySQL for my
curriculum.. i use it to keep attendance, take notes per student or
class and keep track of activities. i would like to soup it up and
have read both the pickax and version 2 of agile web dev...
now i''m starting to work and i''d like to rename columns and
relationships in the database so
2007 Mar 13
6
comparing two databases with Active Record.
I have two databases in SQLite with the same schema. The other
database was populated by an external
customer and then returned. I want to use ActiveRecord to do the
comparison.
I am not sure of the best way to access the tables in each database
with ActiveRecord models. I could
change the connection dynamically whenever I want to switch between
the databases, but this would seem to be clumsy
2008 Jun 08
20
how to parse a "dd/mm/yyyy" formatted date string???
Hi,
I''m stuck. How do you parse a "dd/mm/yyyy" formatted date string???
I get a date format error.
Thanks in advance
Greg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2008 Jun 05
3
how to specify controller '/admin/foo'
WeBrick handles the link correctly on development, but apache in
production does not:
<%= link_to "Orders", :controller => ''/admin/orders'', :action => ''index'' %>
The controller lives in ./app/controllers/admin/orders_controller.rb
From the production log, apache is looking for the "orders" action in
2008 Mar 07
12
Types of apps to use Rails for?
I am a web developer using PHP and very limited JavaScript. I keep
hearing about RoR and am interested in learning it, but before I make
the jump I''d like to hear about the types of applications I should be
using it for.
On all the tutorials you see big apps like stores, social networking,
shopping carts, etc. I don''t have any immediate plans to be building
something that
2006 Mar 22
2
Shared namespaces - solved
Heh heh heh. Whoops.
I've spent a few hours digging around in the source and nearly posted a kludge of a patch I'd written to give a kind of half-baked attempt at getting group-usable subscriptions files. Then I came across something in the source........
In the config file, do something like the following:
namespace public {
separator = /
prefix = Public/
location =