I want to allow users to enter a set of data that will be represented
by a number of rows in a single table.
Should I use an ActiveRecord descendant that does not actually connect
to a table (overriding all the methods that would complain about that
and creating mutators and accessors for all the virtual fields) ?
Or should I use lots of facade columns in the real table's Active
Record and create more instances inside the overriden Save method ?
Cheers
I'm starting with InstantRails with a background in OOP (Object Pascal,
Java, etc.).
I am creating an application that allows the user to enter multiple
values that will each become a tuple in the database table. Where do I
put the code that examines and manipulates the values entered on the
HTML page ?
I prefer not to put them on the controller action of the "next" page
because I want to use AJAX to support a single-page application.
Perhaps I am thinking of this in the wrong way (e.g. old-style,
event-driven, get the data from the user, process the data to the
database). I don't think I can map even simple
one-screen-of-data-is-more-than-one-tuple, but perhaps I am wrong.
TIA
I installed InstantRails. I guess this installs mySql db along with it.
I am using SQL navigator as the IDE to connect to DB.
Now, how do i find the name of the mySQL DB installed in my machine?
and how do i connect to the same?
Early response would be highly appreciate as i am stuck at a stage
wherein i want to connect to the DB and am unable to proceed with My First
R0R Application . :D
--vEnkAt
---------------------------------
Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo!
Messenger with Voice.
[Non-text portions of this message have been removed]
OK. So if you can configure it, then what issue are you having?
Ryan
On 5/1/06, stanciutheone <stanciutheone@...> wrote:
>
> but, i can configure apache to run php and rubyonrails on the same server,
>
>
>
> --- In RubyOnRails@yahoogroups.com, "stanciutheone"
> <stanciutheone@...> wrote:
> >
> > hello,
> > i am a php programmer and i recently decided to learn Ruby on Rains,
> > but i want to know how to intsall ruby with an apache server, and if u
> > want to provide me with some tutorials i will bee very pleased
> > thanks
> >
>
>
>
>
>
>
>
>
>
>
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group
"RubyOnRails<http://groups.yahoo.com/group/RubyOnRails>"
> on the web.
>
> - To unsubscribe from this group, send an email to:
>
RubyOnRails-unsubscribe@yahoogroups.com<RubyOnRails-unsubscribe@yahoogroups.com?\
subject=Unsubscribe>
>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>
--
Thank you,
Ryan Olshan
Website - http://www.StrongTypes.com
Group - http://groups.yahoo.com/group/StrongTypes
Blog - http://blogs.dirteam.com/blogs/ryan/
[Non-text portions of this message have been removed]
but, i can configure apache to run php and rubyonrails on the same server,
--- In RubyOnRails@yahoogroups.com, "stanciutheone"
<stanciutheone@...> wrote:
>
> hello,
> i am a php programmer and i recently decided to learn Ruby on Rains,
> but i want to know how to intsall ruby with an apache server, and if u
> want to provide me with some tutorials i will bee very pleased
> thanks
>
hello,
i am a php programmer and i recently decided to learn Ruby on Rains,
but i want to know how to intsall ruby with an apache server, and if u
want to provide me with some tutorials i will bee very pleased
thanks
Hi i am shiv nd i am got hooked up to this new phenomena called Ruby
On Rails. I really wish to learn nd being alone this cruel programming
world can be tough sometimes. I wanna learn ruby first. So i wish a
few people learn with me.
So lets start ????????
here is the url : http://ruby4me.blogspot.com/
nevermind this. i got the answer, i just made it in a query.. ehe
@remain_persona_types = PersonaType.find_by_sql [ "SELECT * FROM
persona_types WHERE id NOT IN(SELECT persona_type_id FROM personas
WHERE member_account_id = ?)", session[:loggedin_user_id] ]
thanks
--- In RubyOnRails@yahoogroups.com, "animerei_12" <animerei_12@...> wrote:
>
> hi there,
>
> question with selecting in ruby on rails..
> how do i get the
> select..from.. not in (select table)
>
> this is what i got for now..
>
> @exist_persona_types = Persona.find(:all,
> :select => "persona_type_id", #is a foreign of PersonaType
> :conditions => [ "member_account_id = ?", session[:loggedin_user_id] ]
> )
>
> @remain_persona_types = PersonaType.find(:all,
> :conditions => [ "id NOT IN (?)", [1] ] #hard coded
> )
>
>
> @exist_persona_types would get all the persona_type_id that a current
> user already has then it should exclude it in the
> @remain_persona_types. the problem is i cant get the array of the
> @exist_persona_types.persona_type_id. so as of now, i just hard coded
> the array of [1]..
>
> can someone help
>
> thanks thanks so much
>
hi there,
question with selecting in ruby on rails..
how do i get the
select..from.. not in (select table)
this is what i got for now..
@exist_persona_types = Persona.find(:all,
:select => "persona_type_id", #is a foreign of PersonaType
:conditions => [ "member_account_id = ?", session[:loggedin_user_id] ]
)
@remain_persona_types = PersonaType.find(:all,
:conditions => [ "id NOT IN (?)", [1] ] #hard coded
)
@exist_persona_types would get all the persona_type_id that a current
user already has then it should exclude it in the
@remain_persona_types. the problem is i cant get the array of the
@exist_persona_types.persona_type_id. so as of now, i just hard coded
the array of [1]..
can someone help
thanks thanks so much
Hi Natasha,
How are you? its really a good news that you are organising such a good
seminar for Ruby or ROR Programmers.
Natasha, I am Deepak Kalhan from Bangalore, India. I am also working on RUBY
and ROR from last 4 Months and people here are very much interesting to work on
Ruby and ROR. If possible can you arrange such kind of seminar here in Bangalore
and I am ready to provide you any kind of help you required.
Kindly, think on this and let me know about you plans.
Regards
=================================================
Deepak Kalhan
+9199861-97497
[Non-text portions of this message have been removed]
Hi there,
Chad Fowler, developer of RubyGems, contributing author to Programming
Ruby and author of the upcoming Pragmatic Rails Recipes,will present a
1 day workshop on Ruby and a 3-day workshop on Rails in London, UK on
April 10th.
The Ruby on Rails training will start with a full day overview of the
Ruby language, with content specifically geared toward understanding
what makes Rails work.
More information or to register:
http://skillsmatter.com/ruby-training-course
The Rails Workshop covers all of the major features of Rails.
Delegates will develop their own Ajax-powered applications in Rails by
the end of this course.
More information or to register:
http://skillsmatter.com/rails-training-course
Since July of 2004, Rails has been turning the world of Web
development on its head. In its first year of existence, it has gone
from niche language newcomer to the default choice for Web 2.0
application development.
With a whole new language and new application framework to learn,
these training courses will give you a much needed head start.
Hello Everyone,
I hope you AJAX pros don't mind me asking such a simple question, but
it's been baffling me all weekend. I'm trying to learn the AJAX side
of rails and struggling with what I though would be fairly simple
operations. I'd like to add rows to a table, and use an effect, like
Slide Down or Highlight. However, when I tried to add them in the way
recommended by the book I'm going off of, it didn't work. Here's some
snippits of what I have:
My view:
-------------------------------
<% content_for("page_scripts") do -%>
function item_added()
{
var item = $('mytable').lastChild.lastChild;
new Effect.Highlight(item);
}
<% end -%>
<h1>Listing</h1>
<%= link_to 'New', :action => 'new' %>
<div id="mytable_div">
<table id="mytable">
<%= render(:partial => 'mytable') -%>
</table>
</div>
<br />
-------------------------------
_mytable.rhtml:
-------------------------------
<tr bgcolor="#999999">
<th><font color="#ffffff">Col1</font></th>
<th><font color="#ffffff">Col2</font></th>
<th><font color="#ffffff">Col3</font></th>
<th><font color="#ffffff">...</font></th>
<th><font color="#ffffff">Col9</font></th>
</tr>
<%= render(:partial => 'row', :collection => @items) -%>
-------------------------------
_row.rhtml:
-------------------------------
<tr bgcolor="#dddddd" id="timecard_<%= timecard.id %>">
<td><%=h item.val1 %></td>
<td><%=h item.val2 %></td>
<td><%=h item.val3 %></td>
<td>...</td>
<td><%=h item.val9 %></td>
</tr>
-------------------------------
Controller's new action:
-------------------------------
def new
item = MyClass.new()
render(:partial => 'row', :object => item, :layout => false)
end
The row is added by AJAX but no effect is called... any idea what I'm
doing wrong?
-Josh
-----------
Due to the recent increase in spam and falsely sent email, I now PGP
Sign all of my outgoing mail to prove my identity. This means that
you will see an attachment called "PGP.sig" with this message. This
attachment can be used to prove that I am who I say I am. If you are
not familiar with PGP, you can safely ignore it. For more
information, please visit http://www.pgp.com/ or http://www.gnupg.org/
[Non-text portions of this message have been removed]
Ruby / Ruby on Rails Jobs Yahoo Group
http://groups.yahoo.com/group/rubyrails
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 1/19/2006
Hello Everyone. I recently decided to learn Ruby on Rains and love it so far.
Like another
member on this list, RE, I am a PHP developer, however unlike RE I immediately
saw the
benefits of Ruby on Rails. RE, I can't speak to the bloatedness of Ruby yet
because I haven't
done any performance tests, but so far, I am blown away at how quickly I can get
code up
and running. I rebuilt an application that I had built in PHP, and in under an
hour had the
entire backend done, and that was the first thing I did in Ruby, so I was
learning at the same
time. That same admin took well over an hour in PHP...
So far I'm sold. :-)
Just as a reference, what are other list members' levels of experience with RoR?
-Josh
I am Deepak Kalhan. I am new to Madeliene, Ruby and Rails. I am working on Ruby and Rails since Oct.2005. However, I am totally new to Madeliene. My query is for you people are that, "Can we implement Madeliene on Rails ?"
Please tell me the idea or complete source of it. If you have any URL's then please send me.
Waiting for your reply.
Regds
On Mon, 19 Dec 2005 RubyOnRails Moderator wrote : > >Hello, > >Welcome to the RubyOnRails group at Yahoo! Groups, a >free, easy-to-use email group service. Please >take a moment to review this message. > >To learn more about the RubyOnRails group, please visit >http://groups.yahoo.com/group/RubyOnRails > >To start sending messages to members of this group, simply >send email to >RubyOnRails@yahoogroups.com > >If you do not wish to belong to RubyOnRails, you may >unsubscribe by sending an email to >RubyOnRails-unsubscribe@yahoogroups.com > >To see and modify all of your groups, go to >http://groups.yahoo.com/mygroups > > >Regards, > >Moderator, RubyOnRails > > > > >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > > > > >
In order to keep this group focused on issues related to programming using the Ruby On Rails framework, I have created RubyOnRailsJobsUS - http://groups.yahoo.com/group/RubyOnRailsJobsUS
. Please post future jobs located in the US at that group.
CONTRACT JOB: Ruby on Rails Developer, Herndon, VA or telecommute
My client needs at least one experienced Ruby on Rails Developer for
building department-level internal business applications quickly.
This is a 2 month contract position paying $40/hour
My client would prefer candidates to work on-site in Herndon, VA, but
telecommuting is ok too.
If you are interested in this contract, please send resume along with
paragraph highlighting your Ruby on Rails experience to
beau@...
This is a 2 month contract position paying $40/hour
Hello all,
I'm a noob in Ruby on Rails and Im currently doing a site that lists
user contacts from a database. I have buttons on the site if you want
to view the contacts in all As to Cs; Ds to Fs; etc.
Im having problems figuring out the codes needed.
Thanks
Wanna be a Ruby on Rails developer?
Know someone who wants to be?
== The Company ==
Who: Just two folks. Experienced, fundable.
What: Consumer website for a high-margin business.
Stage: Start-up.
Where: Palo Alto, CA.
== You ==
Must have:
Scripting-language-fu.
HTML, CSS.
Linux.
Communication skills.
Nice to have (in order):
DHTML.
Ruby on Rails.
MySQL, especially performance optimizations.
memcached.
Payment systems (credit card transactions, etc.).
Mario Kart.
Please contact me directly. Thanks!
-Mark
Mark Wong-VanHaren
markwvh AT gmail DOT com
This isnt a spam!!
There dont seem to be many Ruby on Rails ROR guys out there looking for
a permanent job so i am opening it up!
If you are a Java developer and interested in using ROR and Java in an
Agile environment let me know.
London at around £35k.
Grant @ connectionsrecruit.co.uk
01189 897 601
www.connectionsrecruit.co.uk
Main site is pumping out so much hype, what do people really think of it?
Higher ups have been snared by the hype so I have to look at it.
Skeptical for the following reasons(maybe they will be knocked off
one-by-one):
1) extreme amounts of hype are being applied to RoR
2) it's a MVC-like framework therefore by definition a bloated,
contrived approach to doing a dynamic page or two, or three or four.
3) it hypes the benefits of OO, it sickens me to hear developers try
to explain the silver bullet of OO to mgmt.
4) it's predictably another sledge hammer being used to push in tacks,
and those tacks being characterized as nails by developers to mgmt.
5) it's developed by web programmers who can't stand what web
programming really entails--HTML, CSS, images--pages, PAGES.
6) eXtreme Programmers are hyping it in their sleep
7) I love PHP, and thought that is finally the technology to kill the
hopelessly bloated j2ee and dotNET. But no...we have to look at RoR.
Best Regs,
-RE
My todo_controller.rb should have read
------------------------------------------------
class TodoController < ApplicationController
model :todo
def index
end
end
------------------------------------------------
Steph
I'm just starting out with RoR (and object-oriented scripting in
general). Following various
write-ups (noteably David Arnold's post & helpful installer at
http://www.tonyarnold.com/
articles/2005/08/10/rolling-with-ruby-on-rails-on-
mac-os-x-tiger-for-beginners ), I've
gotten everything installed on my desktop. Yay!
Next step: Vincent Foley's "Todo List" tutorial: h
ttp://darkhost.mine.nu:8080/~vince/rails/
tutorial.html
* I created a new project
* configured my database
* generated a model and controller
* linked my controller to my model
* started up WEBrick (configuring apache is another question for
another day =P)
* received the expected "Unknown action" error when loading the site
* added an empty method definition to my controller
and the..... recieved a syntax error from it. I've copied and pasted
everything directly from
the tutorial, so I'm guessing that perhaps this is a versioning issue
(the tutorial is for Rails
version 0.9.1, ActionPack 1.0.1, ActiveRecord 1.2.0 and ActionMailer
0.5; I'm uncertain
how to verify which versions I'm using, but everything was updated
via gem last night, so I
would presume its latest stable. rails -v returns "rails: version
unknown").
My todo_controller.rb looks like this:
--------------------------------------------
class TodoController < ApplicationController
model :todo
def index
end
--------------------------------------------
And according to the tutorial, it should return a "Template is
Missing" error.
The syntax error doesn't appear to be terribly detailed (unless
there's something in here
that I'm missing):
------------------------------------------------
SyntaxError in <controller not set>#<action not set>
/app/controllers/todo_controller.rb:5: syntax error
routing.rb:219:in `traverse_to_controller'
generated/routing/recognition.rb:3:in `eval'
generated/routing/recognition.rb:3:in `recognize_path'
script/server:49
Show framework trace
This error occured while loading the following files:
./script/../config/../app/controllers/todo_controller.rb
--------------------------------------------------
pretty much tells me I've done it wrong, but doesn't indicate what
the right way may be....
I've tried googling the error message that I am getting, but so far
I'll I've been able to find
is confirmation that yes indeed, that is a syntax error. I did find
an IRC log where other
folks doing the tutorial came across the same problem, but nobody
indicated what the
corrected syntax should be.
So, I'm wondering if anybody could either help point out what's wrong
with my .rb file, or
direct me to a resource which spells it out. Its probably the
stupidest of things, but at this
point I just don't know enough about rails to see it :(
Thanks in advance!
Steph
I'm completely new to Ruby on Rails.
I do have an account at TextDrive, and look forward to getting some
sample applications up as soon as I can find to play with RoR. It looks
like the right tool, and I like that they have integrated Ajax into the
newest release.
I'm experienced with every other web-building technology out there, so I
really look forward to trying this.
Jay
Interested in Ruby on Rails. Got here from 43folders.grp. Not much
of a programmer. Have interest and some time since mobility limited
by broken bone in foot and knee problems.