I've tried Aptana/Eclipse and NetBeans. They're both good but I think
NetBeans is significantly better. But make sure to set the -J-Xmx
parameter to prevent it from using too much RAM. I set mine to -J-
Xmx200m (200MB max).
And I agree with the comment about Notepad++ for lightweight editing.
It
kat...@gmail.com wrote:
Gary,
Good suggestion. I had the same problem with mysql 5.1, but the
problem disappeared going back to 5.0.
Although i was using 5.0 , that didnt disappeared in my environment...
then i relaized that i was using 5.0.24 but mysql ruby gem (2.7.3) is
supporting
Mesut Çelik wrote:
you can check it here... I couldnt find anything regarding to Mysql 5.1
missing url : http://tmtm.org/mysql/ruby/README.html
mesut
www.zerobuffer.com
Kaushik
On Nov 30, 10:40�am, David Franklin rails-mailing-l...@andreas-s.net
--
Posted via
thx for the links merrick
--
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 to this group, send email to rubyonrails-talk@googlegroups.com
I have this problem.
I have a Job table in my db, and each job has many steps (table Step).
Is not possible to know how many steps a job has until it is created. So
when I create a new job I have a problem: I can not have a step_id in my
Job table, because it can be one step or more.
What can I
On Dec 22, 9:16 am, John Smith rails-mailing-l...@andreas-s.net
wrote:
I have this problem.
I have a Job table in my db, and each job has many steps (table Step).
Is not possible to know how many steps a job has until it is created. So
when I create a new job I have a problem: I can not
Alright, thanks guys! A lot of editing is waiting for me now...
--
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 to this group, send
Ryan Bigg wrote:
qvvalup is not the same as qvvaluf, unless you're speaking a language
I'm not recognising. Rails works best with english words and
pluralization. Somewhere in your app you're referencing
qvvaluf_path... probably a scaffold somewhere. Got a stack trace for us?
-
Ryan
Thanks, I know.
If I can create a job first I have no problem, but I can't do that. I
want to be able to create a job and, at the same time, create as many
steps as I want. I would use AJAX in order to create new step fields,
but if I have not created a job I can have any relation between a
Hello,
I am running ASP.NET on IIS and on the same server am running rails. I
have started multiple instances of mongrel as service and apache does
the load balancing.
THE PROBLEM IS i want to run the ASP.NET website on IIS and at the same
time run the rails website through apache mongrel
Having Cygwin installed or not isn't the problem. There isn't a binary
for windows in the new sqlite3 gem, that is what's causing the problem.
You'll need to install a prior version.
Try this:
gem install sqlite3-ruby -v=1.2.3
That should solve your problem.
Oliver Robinson wrote:
Have
HAii.. sorry my English is very bad
I don't what you want... but I have idea
why do u not use 3 model / 3 table?
table job
id
table join_job_step
job_id
step_id
table step
id
this is has_many_and_belongs_to (same), but Don't use
has_many_and_belongs_to.
Model:
* job
has_many
Thanks a lot, but I think that does not solve my problem, because I need
to create a job to make a relation between the job and it steps. With
that, I can create steps without a job, but how can I make relation
between these steps and the job. Should I have to take the last steps
and make a
Hi Guys,
I am still very new to this rails stuff so I'm looking for some help. I
have a login controller which authenticates a person and redirects them
to the projects page, here is a snippet of code.
==
if request.post?
Hello everyone,
I was trying to install these in_place_editing and acts_as_textiled
plugins in my rails application version 2.2.2, running on windows XP
but i came across some problems when doing so.
When i was trying to install in_place_editing, using the command
ruby script/plugin install
Marnen Laibow-Koser wrote:
...
(From Ken:)
I find the Rails documentation frustrating because so much is left out.
Left out? What do you mean? Do you have a concrete example?
Then I spend hours testing, digging and reading. Maybe I am just
thick-headed.
Yes. Take form_tag. Even on
napster wrote:
hi guys,
my rails is 2.1.2,today I've installed Rails 2.2,and
i have run into a few problems.
message:no such file to load --mysql
then i try to run
gem install mysql
and i get a new error message:
126: Cannot find mold train which assigns -
Hi,
Does anyone know if there's a callback that gets called when a
existing record gets updated but not when a record gets destroyed?
After_update and before_update seem to also get called on destroy. I
there is no such a callback can anybody suggest an alternative way of
triggering a method
On Dec 20, 2008, at 11:30 AM, Pete Bekisz wrote:
Good morning all,
I've been using the imap_authenticatable plugin for about a year now
without incident. All of a sudden, I tried logging in this morning
and this error is showing up in the logs. Does anyone have any idea
what could be
Use restful authentication (or a similar plugin) for tracking that
kind of stuff: http://github.com/technoweenie/restful_authentication
-
Ryan Bigg
Freelancer
http://frozenplague.net
On 22/12/2008, at 11:53 PM, Dave Smith wrote:
Hi Guys,
I am still very new to this rails stuff
On Sun, Dec 21, 2008 at 10:03 PM, Ryan Ororie
rails-mailing-l...@andreas-s.net wrote:
So I have been tinkering with Rails all week - I'm a designer, not a
developer, but I'm looking to expand my knowledge. I created an instance
of Radiant, the cms, and am looking to fiddle with it and then
Thanks for the additional insight. I'll try to build an example for
my own edification.
Best wishes,
Richard
On Dec 21, 9:55 am, John Small rails-mailing-l...@andreas-s.net
wrote:
RichardOnRails wrote:
Hi John,
Congrats on figuring that out. It sounds like a useful construct for
a
Ken Wagner wrote:
Left out? What do you mean? Do you have a concrete example?
Then I spend hours testing, digging and reading. Maybe I am just
thick-headed.
Yes. Take form_tag. Even on RailsBrain. Go to the top of the page.
It doesn't tell you What and Why. What, exactly, is a
Hi Rob,
Thanks for your answers. I switched the server from our authentication
server over to our mail server and it seems to be running fine, so I'm
assuming it's an issue with the way the auth server handles IMAP/POP
authentication. Here's the code from the plugin:
def
anyone with ideas on this?
On Dec 20, 12:50 pm, tashfeen.ekram tashfeen.ek...@gmail.com
wrote:
i forgot to mention that the log file is not being created and the
permission on the file is to all.
On Dec 20, 9:48 am, tashfeen.ekram tashfeen.ek...@gmail.com wrote:
a beginner quesition.
I'd say that a guard was needed on the disconnect call.
On Dec 22, 2008, at 9:28 AM, Pete Bekisz wrote:
Hi Rob,
Thanks for your answers. I switched the server from our
authentication server over to our mail server and it seems to be
running fine, so I'm assuming it's an issue with the
I do have includes on the finder, but the associates are not sent with
the json output.
For now I wound up just building my own hash and returning that.
On Dec 20, 1:55 pm, rp8 -_- rails-mailing-l...@andreas-s.net wrote:
use eager loading on your @orders with :include option or use :select to
On Dec 22, 2:31 pm, pbo...@gmail.com pbo...@gmail.com wrote:
This works, but what if I want to add other json object that aren't in
orders? Ext JS needs a count param for it's client side
pagination. So I originally had this:
format.json { render :json = { :order = @orders, :count =
On Mon, Dec 22, 2008 at 6:22 AM, Robert Walker
rails-mailing-l...@andreas-s.net wrote:
This is a matter of prerequisite. The Rails documentation assumes you
know HTML, CSS, JavaScript, etc. It does not attempt to teach HTML. If
you don't know what an HTML tag is, then study documentation on
I think what you're looking for is the build method, something along
the lines of @job.steps.build in your controller.
Take a look at the complex form railscasts by Ryan Bates:
http://railscasts.com/episodes/73-complex-forms-part-1
(go to parts 2 and 3 after you're done with part 1).
On Dec
On Mon, Dec 22, 2008 at 10:09 AM, elioncho elion...@gmail.com wrote:
Hello,
I am trying to apply a gsub! to a string. I want to know how to make
the pattern evaluate that everything that IS NOT numbers, letters or
commas should be replaced with (nil). Any ideas in how to do this
pattern?
On Dec 22, 2008, at 11:09 AM, elioncho wrote:
Hello,
I am trying to apply a gsub! to a string. I want to know how to make
the pattern evaluate that everything that IS NOT numbers, letters or
commas should be replaced with (nil). Any ideas in how to do this
pattern?
/[^[:alnum:],]/
[^ ] -
Hi,
You can use gsub(/[^0-9a-zA-Z,]/, '') to replace only non numbers, alphabets
and ,
Regards,
NAYAK
On Mon, Dec 22, 2008 at 9:53 PM, Michael Libby michael.c.li...@gmail.comwrote:
On Mon, Dec 22, 2008 at 10:09 AM, elioncho elion...@gmail.com wrote:
Hello,
I am trying to apply a
Thanks a lot Michael, it worked perfectly.
Thanks for the link too, it cleared some things up.
Elías
On Dec 22, 11:23 am, Michael Libby michael.c.li...@gmail.com
wrote:
On Mon, Dec 22, 2008 at 10:09 AM, elioncho elion...@gmail.com wrote:
Hello,
I am trying to apply a gsub! to a string.
Hi,
I have been tweaking my index view in order to narrow down the amount of
data displayed. The obvious first step was to add will-paginate, but then I
added a couple of select boxes to narrow things down a bit more based on
categories. Somewhere in the midst of all of this I discovered the way
Just wondering what people would recommend - restful_authentication,
acts_as_authenticated ... or something else?
cheers,
DAZ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to
It appears we are seeing an error when we enable
config.action_controller.perform_caching with our Rails 2.2 upgrade. My
initial hunch is this is related to acts_as_audited plugin but not sure.
has anyone encountered this error and have a fix ?
Rails 2.2.2, Jruby 1.1.6, Tomcat 5.5.27
undefined
Bryce Roney wrote:
mysql grant all on radiant_cms_development.* to root@'%' identified by
'root';
ERROR 1044 (42000): Access denied for user ''@'localhost' to database
'radiant_cms_development'
Does the user you are using to issue this command have appropriate
permissions to GRANT
On Mon, Dec 22, 2008 at 9:55 AM, Ryan Ororie
rails-mailing-l...@andreas-s.net wrote:
mysql grant all on radiant_cms_development.* to root@'%' identified by
'root';
ERROR 1044 (42000): Access denied for user ''@'localhost' to database
'radiant_cms_development'
Presumably... it's the admin
restful-authentication all the way. It's always worked for any project
I've needed user auth for.
-- Josh
http://iammrjoshua.com
DAZ wrote:
Just wondering what people would recommend - restful_authentication,
acts_as_authenticated ... or something else?
cheers,
DAZ
--
Posted via
I have a model users.rb
class Users ActiveRecord::Base
def self.setdot(dot)
end
end
In controller I call it:
user = Users.new
user = Users.setdot(sddf)
I get error:
undefined local variable or method `request'
suman gurung wrote:
I was trying to install these in_place_editing and acts_as_textiled
plugins in my rails application version 2.2.2, running on windows XP
but i came across some problems when doing so.
...
Has the plugins been moved to a different directory?? i believe these
are fairly
jeroen wrote:
Does anyone know if there's a callback that gets called when a
existing record gets updated but not when a record gets destroyed?
After_update and before_update seem to also get called on destroy. I
there is no such a callback can anybody suggest an alternative way of
I second that.
Casey
On Mon, Dec 22, 2008 at 1:06 PM, Joshua Abbott
rails-mailing-l...@andreas-s.net wrote:
restful-authentication all the way. It's always worked for any project
I've needed user auth for.
-- Josh
http://iammrjoshua.com
DAZ wrote:
Just wondering what people would
Hi,
Does anyone aware of ruby code, gem or plugin available to convert
LibXML::XML object to JSON?
Thanks in advance,
Victor
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to
Hi.
Is there a way to stop rails from tokenizing a mysql query? I have an
association where I need to change :select to:
:select = *, (select count(something_id) from second_table where
second_table.something_id = main_table.id ) as count
It works OK without loading associations, however I
On Mon, Dec 22, 2008 at 7:27 PM, Gi Ga rails-mailing-l...@andreas-s.net wrote:
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1833:in
`method_missing'
app/models/users.rb:5:in `setdot'
Can you show the code for the setdot method?
I am currently stuck on how to proceed. This app is hosted on site5.
mysql version 4.1 I believe. I posted this on their forums, and also on
mysql forums. Is anyone able to confirm whether it's a rails issue or
not, or mysql, or something with the web hosting server.
I can't load my schema
Hi all,
I want to transfer a rails project (still under development) from my
aptop to my pc. I copied the project folder into the ruby directory on
my pc and ran it with mongrel (ran successfully). However, when I try
to access the site through the browser, the pages won't display. What
am I
I dont think you can just copy the application folder over. Try running
the
rails app_name command on your pc and then copy the app folder over
and all other files that you may have changed (routes, db.yaml...etc)
I have never done this myself, so let me know how it goes :)
am I doing wrong?
How do I debug Litespeed Server on Mac OS 10.5 with GDB? I haven't a
clue on how to proceed. I haven't used GDB before.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
RDiscount works fantastically on Mac and GNU/Linux systems, you can find
alternatives here:
http://tomayko.com/writings/ruby-markdown-libraries-real-cheap-for-you-two-for-price-of-one
John Butler wrote:
Hi,
I wonder if anyone can help. Im trying to get an application running on
windows
We are trying to use set_primary_key to cause an existing rails db to
use a different primary key. This works find for accessing existing
data, but gives an error when we try to add a new record, as it seems
to still be accessing the record by the default id field at that
point. Are there
Hi,
Unfortunately this isn't the right group to post this query, but since
I see similar questions about Twitter4R were previously asked on this
group I will give an answer and CC the Twitter4R-Users Google Group
(twitter4r-users).
This following blog post talks about his issues with install
Does anyone know how to do cron-like scheduling with the daemon gem?
basically i need my script to execute every day at 4 a.m. Here's what
the default files comes with
while($running) do
# Replace this with your code
ActiveRecord::Base.logger.info This daemon is still running at
It is custom to copy the folder from one location to another and then
adjust the database.yml if required and other dependent configuration
settings.
How do you verify that your application on pc using mongrel is
running?
What database are you using?
What is the contents of application log file
On Dec 22, 1:06 pm, Joshua Abbott rails-mailing-l...@andreas-s.net
wrote:
restful-authentication all the way. It's always worked for any project
I've needed user auth for.
[...]
That's what I use (although I've been meaning to patch it to use
bcrypt).
Best,
--
Marnen Laibow-Koser
On Dec 22, 11:42 am, NAYAK nay...@gmail.com wrote:
Hi,
You can use gsub(/[^0-9a-zA-Z,]/, '') to replace only non numbers, alphabets
and ,
That's not reliable if you're outside an English environment. :alnum:
is a better solution.
Regards,
NAYAK
Best,
--
Marnen Laibow-Koser
I have used the set_primary_key with some 3rd party propriety
databases with no issues you describe.
Could you give us some more information (table structure and such) to
be able to help you adequately.
On Dec 22, 10:51 pm, Kenneth McDonald
kenneth.m.mcdon...@sbcglobal.net wrote:
We are
I think the problem is likely that the old primary key in the
database is still the id field that rails generates and uses by
default, and we can't change that since (for the time being, our needs
being modest) we're using sqlite. We want to use a field called rmr,
basically an
On 22 Dec 2008, at 21:30, Pål Bergström wrote:
How do I debug Litespeed Server on Mac OS 10.5 with GDB? I haven't a
clue on how to proceed. I haven't used GDB before.
Jamis Buck had an article about extracting ruby stack traces from a
gdb session:
On 22 Dec 2008, at 19:07, Marcelo Barbudas wrote:
Hi.
Is there a way to stop rails from tokenizing a mysql query? I have an
association where I need to change :select to:
:select = *, (select count(something_id) from second_table where
second_table.something_id = main_table.id ) as
On Mon, Dec 22, 2008 at 10:45 AM, elioncho elion...@gmail.com wrote:
Thanks a lot Michael, it worked perfectly.
Thanks for the link too, it cleared some things up.
Elías
I should mention this neat web site, too:
http://www.rubular.com/
You can try out Ruby regular expressions right in
I would like to do this:
Greeter.find(:all, :select = DISTINCT user_id, :include = [:user],
:joins = [:user], :order = users.nickname)
But an error is always thrown, I either do the join so that I go
order on the join table... which I have to do... or I do eager loading
which helps out a lot
If you need to perform some action at particular time then you should
test is is a time to action.
If time is right, do you thing.
If not then sleep a while and then test it once again.
You can have an initial sleeping interval and then you can adjust in
correlation how far is the next running
Hi Pra,
Sorry, I have been (still am) busy. I'll try to give you an example
ASAP but it might take me a little while. Hopefully soon.
Pepe
On Dec 20, 2:23 pm, Pra Ng rails-mailing-l...@andreas-s.net wrote:
Pra Ng wrote:
pepe wrote:
I believe you are missing an input field for your updated
Hello,
I'm having trouble installing the mysql gem, here is the error I am
getting:
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Hi all,
I have a Message class which has_many Message_Users, Message_User is
basically a join table with an attribute, and belongs_to a User.
so it kinda looks like the following:
Message has_many :message_users
MessageUser belong_to :user
User - lots of user stuff
What I want to do, is
On Sun, Dec 21, 2008 at 11:58 PM, sreekanth. G gsirika...@gmail.com wrote:
I have two selctdropdown boxes name like resolution and codecname.
Now i am able to get the single field value either from resolution or
codecformat select box.
is there any way to get the two fields in to the
Marnen Laibow-Koser wrote:
Thanks for the suggestion. I tried the same test, and got interesting
if disheartening results. When I had recipe[ingredient_lines][]
[ingredient][name] as the only form field, I got the same results as
you. But the moment I added
Thanks for reply.
On Tue, Dec 23, 2008 at 4:24 AM, Dejan Dimic dejan.di...@gmail.com wrote:
This is a common problem on windows platform where development tools
(compiler and linker) and libraries are not in the path.
On Dec 22, 10:48 pm, SP mbbx6...@gmail.com wrote:
Hi,
I have two classes: Article and Update. When I try to update an
Article, it is NOT saving the instance, but is only saving the
associated Update object (which is valid).
class Article ActiveRecord::Base
has_one :update, :as = :content, :dependent = :destroy
end
class Update
Gary Doades wrote:
What version of MySQL is this? I have had similar problems with MySQL
5.1 and the mysql gem with ActiveRecord. Switching back to MySQL version
5.0.67 and re-installing the MySQL gem seemed a lot better.
Rolling back to 5.0.67 also worked for me. Thanks!
--
Posted via
73 matches
Mail list logo