Displaying 20 results from an estimated 26 matches for "railsy".
Did you mean:
rails
2006 Jun 12
5
railish icons?
This is a little off topic but someone here knows, I''m sure... Does
anyone have a good site to find freely available standard icons for
things like add/edit/delete/save?
I''m looking for a set of clean and simple matching icons that capture
that Railsy-Web 2.0 feel...
Maybe icons aren''t Railsy...
Steven
--
Posted via http://www.ruby-forum.com/.
2006 Aug 28
8
Railsy way to Export Database Schema?
Is there a nice way in rails to automatically extract an exising
database schema from an existing app and then in a new app automatically
create a database based on this schema?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post
2012 Feb 21
8
should_receive_chain
Do you often find yourself doing this:
active = double(''active'')
active.should_receive(:first)
users = double(''users'', active: active)
account.should_receive(:users).and_return(users)
for this:
account.users.active.first
?
Of course, we could use stub_chain, but that doesn''t let us know
*where* the chain broke.
Would you like to do this?
2006 Aug 12
1
has and belongs to many different?
...s "person
has_and_belongs_to_many_different things"
I guess it could be implemented by manually looking at the 2nd table to
find the foreign key and table that it refers to and then do a find from
the specific table for the specific ID. But, I''m trying to find a
better "Railsy" way.
Cheers
Mohit.
2006 Jul 20
2
workweek_select
...doesn''t
seem to have the flexibility so I''ve been going at it in ruby to no
avail.
I''ve looked on google but couldn''t find it (because it isn''t there or
I don''t know exactly what to search for). I''m not concerned about
having the full railsy date select but it would be nice if it''s
possible.
This is the code so far:
def select_friday(in_model, in_attr)
# Scope breaker
friday = ""
# This seems to never trigger at all. A breakpoint before the
conditional is never honored.
Date.today.step(7, 1) do |...
2008 Apr 15
2
environment.rb uninitialized constant when starting console
I have the following code in environment.rb:
require File.join(File.dirname(__FILE__), ''boot'')
raw_config = File.read(RAILS_ROOT + "/config/config.yml")
APP_CONFIG = YAML.load(raw_config)[RAILS_ENV]
This works fine when running the server, but if I try and start a
console I get:
Loading development environment.
2006 Jun 20
8
Integrating multiple applications
I''ve got a couple apps that I use (billing app, support ticket app,
some other custom apps) that I want to integrate into one site. They
will all use the same layout for the most part, and will link between
each other.
When I initially thought of doing this, I figured if I put the apps at
different roots - /billing /support etc - then the links wouldn''t work
at all, because
2009 Jul 06
8
how to make ZenTest autotest run whenever my tests change
Railsters:
Despite Rails being the only Web platform designed for TDD, a lot of its test
infrastructure is still "cargo cult" - imitating other test rigs instead of
understanding their principles.
Most importantly, tests should run instantly. There''s no excuse for breaking
this rule, and if you invent a platform that can''t obey it then you are doing
something
2006 Aug 14
0
How to get the right form to retry for valid input
...d set a session variable or pass the form name
in a hidden field, but that seems kind of clunky. And setting up
matching Form1 - Update1, Form2 - Update2, etc. sets of methods seems
very non-DRY when the only difference between the updates is the
final render action. Is there a normal "railsy" way of setting this up?
Thanks,
Steve
2006 Jul 10
3
Can migrations set up foreign key references?
I use Oracle and i really want to use migrations, but there seems to be
no way to setup foreign key constraints. Is this true? If it is then
doesn''t that make migrations useles with Oracle?
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Mar 04
2
Current date/time - how to store with comments?
Can someone tell me how to store the current date/time when someone
posts a comment on my blog? I could even update the comments table
after the comment is saved in the controller, but I''m not sure how to do
that either.
Thanks for any help...
--
Posted via http://www.ruby-forum.com/.
2008 Mar 21
0
Problems with attachment_fo and images update
I have installed attachment_fu and i have use this tutorial for change
the path_prefix:
http://the.railsi.st/2007/8/21/how-to-customize-attachment_fu-file-names
the path of images+thumbnail are:
/images/cores/fullsize/
/images/cores/thumb/
/images/cores/thumb_big/
when i create a new attachment object it works, the images are insert
inthese directory.
But when i edit a object (changing also the
2006 Jun 15
1
UI Libraries/Frameworks + Rails
For discussion...
I was talking about with a colleague the other day, the single biggest
problem with replacing traditional client/server apps, is the lack of a
unified front end UI library. Rails is absolutely fantastic and a breath of
fresh air, for doing back end work and AJAX. RJS rocks for transforming HTML
elements, but one of the big stumbling blocks will be how do I simply, drop
a
2007 Sep 18
1
best practices for robust workers
Hi folks,
I''ve got some BackgroundRB workers to handle a long running task
(triggered by a user) that work very well on my staging server, and I
just wanted to check to see if anyone had any advice before I put it
into production.
When I start the worker (which performs an import), I write a record
to my database for each import. The record gets updated by the worker
to
2006 Feb 09
2
#3775 - testing helpers which use ActionView methods
http://dev.rubyonrails.org/ticket/3775
I''m hoping someone will pop up and tell me I''m simply daft with this
ticket (and queries on IRC, and a prior post to the main Rails list),
but I can''t get a peep out of anyone so far.
The question is, how do I write a simple test for a helper method which
calls ActionView methods itself. E.g., a foo_link() helper which calls
2006 Jun 27
5
Rails cronjob?
I want to be able to write a script in Ruby which regularly consumes an
XML feed from a fixed source, re-formats it, produces a large file for
web delivery, and updates a database with the contained information.
It''s simple - just running a script from a cron job, and some basic data
manipulation... But I''d prefer to use the Rails database mapping
constructs than roll my
2006 Oct 01
9
How to create a very simple form
Hi all,
I would like to create a very simple form with RoR similar to this one
in ASP.Net:
http://quickstarts.asp.net/QuickStartv20/aspnet/samples/ctrlref/standard/TextBox/TextBox1_vb.aspx
I my RoR project I want to add a Greeter class like this one:
class Greeter
def initialize(name = "World")
@name = name
end
def say_hi
puts "Hi #{@name}!"
end
def
2012 Jan 27
4
Redirecting to create new page with input
Rails 3.1.3
I believe this is a very very fundamental question, but since I am new
to Rails, it''s more productive to ask someone to point out what I need
to do.
Say, I have a search method that generates a list of youtube videos. I
have completed this part.
And also, I have set up a database, Video, whose fields are video_title
and URL.
I need to place a button to each of these video
2007 Dec 11
14
Attachment-fu + Story Runner
...ent-fu.
I''ve tried various ways of specifying the file data, from custom mocks:
class MockFile < Struct.new
(:original_filename, :read, :content_type); end
fdata = MockFile.new "test_upload.txt", "Test Upload", "text/plain"
to ''proper'' railsy stubs like:
fdata = ActionController::TestUploadedFile.new("../spec/fixtures/
test_upload.txt", "text/plain")
The actual params are specified as:
{ :uploaded_data => fdata,
:filename => file_reference_name(identifier)
}
Now, this is being passed successfully in...
2006 Jan 25
8
conditional replacements in rhtml
I am working on the Agile programming tutorial and trying out some
ruby code. Can someone tell me why the following works:
<h1>Display Cart</h1>
<p>
Your cart currently holds <%= @items.size %>
<%= @items.size == 1 ? "item" : "items" %>.
</p>
while this does not?
<h1>Display Cart</h1>
<p>
Your cart currently