Hi..
please any one help me ...please
On Jan 5, 4:35 pm, Soutom soutom.dh...@gmail.com wrote:
hi all,
i want to integrate jasper report with rails application. So i follow
the instruction as given in the following link
http://wiki.rubyonrails.org/rails/pages/HowtoIntegrateJasperReports
But
For production you can try using ruby enterprise (
http://www.rubyenterpriseedition.com/
).
This should reduce your resources (RAM) usage down about 30%
--
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
use nginx+thin/nginx+passenger will definitely reduce memory utilization.
On 1/7/10, RaW ra...@wrzochol.net wrote:
For production you can try using ruby enterprise (
http://www.rubyenterpriseedition.com/
).
This should reduce your resources (RAM) usage down about 30%
--
Sandip
---
Hi
You can also do this using acts_as_reportable gem
but prawn is always best for complicated pdfs.
On 1/5/10, Adrien Coquio adrien.coq...@gmail.com wrote:
Thanks for your answer !
I will search some informations about prawn.
adrien
On Jan 4, 9:23 pm, bill walton bwalton...@gmail.com
Following settings that needs to be added in environment.rb
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.default_content_type = text/html
ActionMailer::Base.smtp_settings = {
:address = smtp.gmail.com,
:port = 587,
:authentication = :plain,
:enable_starttls_auto = true,
I agree to all suggestions posted above.
The best way to learn ROR, is get yourself well versed with Ruby, look
in rails and try to find how rails uses ruby, to achieve various
processes and functions, Get your hands on IRB and FXRI (just install
ruby and type these commands all in small case to
There are many paid sms gateways in market. They provides developer
api to send sms.
LIKE Webstar, timessms, clickatell. You compare pricing and use which
is best suites with
your business needs.
On 1/5/10, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Merrick Christensen wrote:
Forgive
I hope the configurations are done properly to server appropriate
requests from Apache (web server) to application server, check the
same thing doing webrick.
If it is the same, then possibly you may need to look in your SQL
queries or Code optimizations.
On Jan 7, 12:30 pm, dare ruby
We have developed ceratin accelerate / plugins for the same purpose,
do let me know your costing and budget so that we can see, if we can
help you with this.
On Jan 7, 3:01 am, rubynuby dear...@gmail.com wrote:
Hello
I need to build a system for a non profit org that allows people to
form
there are many optimization available:
1) try to use passenger (or thin)
2) try different ruby VM ( jruby , RubyEE , ruby 1.9) and find which
work best with your application.
3) look for memory leakage in your application
4) Use some tool like New Relic for fine tuning performance
5) Try to
hi,
i have build a scaffold of [book name:string pages:int]
it build successfully, then from rake task i did db:create:all and
db:migrate , all was working fine
now i want to change the defination of book form previous to [book
name:string pages:int publisher:string]
as to solve the problem i
Hi !
According to your relationships: resource :has_many = roles
but you are using pro.roles. It means project should has many
roles.Its totally wrong accordingly.
First fetch all project_resources for a particular project. Eg.
pr_resources = Project.find(1).project_resources
pr_resources
As seen from above in Project class there is no relation ship defined
for role so how can you expect the result from it.
Add has_many :roles, :through = :projects_ressources
and the required output will be produced.
On Jan 7, 10:54 am, Sven Schleier li...@ruby-forum.com wrote:
Hello,
I'm
Hey everybody,
I am using text field with autocomplete in my posts new action. That
works great.
Response from autocompleter in firebug:
POST http://localhost:3001/posts/auto_complete_for_tag_name 200 OK 68ms
but if I use the same in edit action it fails and I got this error.
POST
Hello,
I've set-up a new computer and I'm having troubles with gems.
In the production server and in my old developer machine works perfect,
but in the nem I'm getting errors when I start them using thin:
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such
Hi all,
suppose I have the following model:
class FrotaEmpresa ActiveRecord::Base
belongs_to :servico, :foreign_key='sev_codigo'
belongs_to :tipo_veiculo, :foreign_key='tve_codigo'
end
in my controller I'm building a query like this:
select = fro_codigo, f.for_cod, fro_num_ordem,
Hello,
I want to make an API in XML and JSON (maybe more), and I want most of
the time use the same parameters for the to_xml and the to_json at least
(same :include, :only, :except, :methods).
What is the best way to do that?
Thank you,
Camille Roux
--
Posted via http://www.ruby-forum.com/.
--
Thanks everyone for your suggestion. I have basic ruby knowledge but
not advanced stuff so I will try and build on that.
On Jan 7, 4:20 am, raghubetter raghubet...@gmail.com wrote:
I agree to all suggestions posted above.
The best way to learn ROR, is get yourself well versed with Ruby, look
can you write the line custom_require.rb:31 here to get it solve
On Thu, Jan 7, 2010 at 5:46 PM, Raimon Fs li...@ruby-forum.com wrote:
Hello,
I've set-up a new computer and I'm having troubles with gems.
In the production server and in my old developer machine works perfect,
but in the
you have to make one migration
add_column type methods used there then migrate them
On Thu, Jan 7, 2010 at 10:02 AM, Saboor saboorahmeda...@gmail.com wrote:
hi,
i have build a scaffold of [book name:string pages:int]
it build successfully, then from rake task i did db:create:all and
thnx i used it message sent successfully but there is no msg in my inbox
On Thu, Jan 7, 2010 at 2:47 PM, Sandip Ransing san2...@gmail.com wrote:
Following settings that needs to be added in environment.rb
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.default_content_type =
I have forked metric_fu and add rails_best_practices to it.
rails_best_practices is a great gem to check your rails app codes and
give you some good suggestions for better rails codes.
The repository of flyerhzm-metric_fu is here:
http://github.com/flyerhzm/metric_fu
The repository of
brianp,
Checkout these railscasts:
http://railscasts.com/episodes/134-paperclip
http://railscasts.com/episodes/182-cropping-images
both used paperclip and they got me up and running in an hr or so. If
you need help e-mail me directly as I only read the group discussion
every day or so.
Brian
Hi
I'm writing small replacement for ActiveRecord to support columns
oriented databases (HBase). I put all of my code into /lib folder and
created small rake file into /lib/tasks to support unit testing:
#- start of file -
namespace :test do
Rake::TestTask.new(:lib) do |t|
t.libs
kannav rajeev wrote:
can you write the line custom_require.rb:31 here to get it solve
gem_original_require path
This line is from the file custom_require:
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
Frank--
Take a look at http://friendlyorm.com/. That sounds like what you
need... You can then evolve your data models on the fly.
Or you could do something like create a CustomField model and make
your User model so that it 'has_many' custom fields. You could even
make it bi-directional and
The error must be related to some path or similar, as if I paste de plug
in will_paginate in vendors/plugins it works ...
But I believe my paths are ok, as I can find everything there ...
any idea ?
thanks!
regards,
r.
--
Posted via http://www.ruby-forum.com/.
--
You received this message
Maybe try form_for instead of form_remote_tag?
I wrote a gem that creates some scaffolding code customized for the
auto complete that might help you get a form working in your app
quickly; see: http://patshaughnessy.net/2009/10/1/auto_complete-scaffolding
Later you could adapt the scaffolding
On Thu, Jan 7, 2010 at 10:10 AM, Pale Horse li...@ruby-forum.com wrote:
Example A: Example One
What I need is a string method to remove One from that string so the
result is just Example.
I'm sure this is very simple but I just require a swift response.
How about Example One.split?
--wpd
Pale Horse wrote:
Example A: Example One
What I need is a string method to remove One from that string so the
result is just Example.
I'm sure this is very simple but I just require a swift response.
Thanks.
a = Example One
a = a.split(/ /)[0]
In general, the way to solve a problem
a = Example One
a = a.split(/ /)[0]
In general, the way to solve a problem is to try and tackle it from
different angles.
Do you want to ...
a) remove everything after 'Example'?
b) remove the last four characters of the string?
c) remove everything after the first word?
d) remove the
I'm further down the same road. :) I'm currently interviewing for ROR
jobs and C# ones. Currently employed but looking for a better fit.
I agree with others that you should just start coding and post your
work up.
In interviewing, people want to see your work. You need running sites
that
On Jan 6, 3:35 am, Subashini Kumar li...@ruby-forum.com wrote:
Hi
I have a string
str=pHspan style=font-family: impact,chicago;g/spanenrik
Lundqvist,gspan style=font-family: georgia,palatino;gh nv span
style=font-family: wingdings,zapf dingbats;gnm h fsgfb
g/span/spanthe preternaturally
please remove me from this mailing list
Regards and Respects,
Kindness in thought leads to wisdom.
Kindness in speech leads to eloquence.
Kindness in action leads to love.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
Am 07.01.2010 um 16:47 schrieb Oluwayomi Oluwadara:
please remove me from this mailing list
Please have a look at the footer google-groups adds to each and every mail in
this mailinglist.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
On Jan 6, 9:43 pm, Lee Smith autige...@gmail.com wrote:
I'm thinking about unpacking the gems that my app uses. If my
development box has exactly the gem versions I want to unpack, do I
still need to specify each gem's version in config/environment.rb?
config.gem paperclip, :version =
I would add to this excellent list: get extremely comfortable working
in the console, since Ruby is an interpreted language you can learn/
confirm most everything in the console. You'll see Ryan use it a lot
in his RailsCasts, so watch how he uses it as much as watching the
subject he's
Thanks Matt. That's exactly what I wanted to confirm.
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
Quoting Pale Horse li...@ruby-forum.com:
Example A: Example One
What I need is a string method to remove One from that string so the
result is just Example.
irb(main):010:0 Example One and trailing stufff.split(' ', 2)[0]
= Example
irb(main):014:0 Example One and trailing
I've had to download an existing Rails project and I'm attempting to
setup locally. I've installed all the 2.1.1 rails gems needed by the
project as the existing site is at that version. My platform is
Netbeans 6.8 on Windows Vista for development and prod is on linux.
I've been able to setup test
Hello all,
I'm in my third month of Ruby on Rails. I think it's coming along
fairly well.
My current issue is this.
I'm do a search based on string data some of which is very long. So I'm
doing a similar match using amatch gem.
When I have a 50% or greater match I store the id to an array.
How
hi,
is someone out there using juggernaut?
im getting popups from the browser telling me the various status of
juggernaut, and i dont know how to disable them...
thx tom
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
i didnt understand friendly, but a CustomField-Models is similar to
what i said is sugar-crm doingand u can do the same in rails.
only the views needs to be adapated / can b cumbersome, unless someone
has a solution for that. to me, i do more flex and have all custom
fields in a simple
I need to use SSL for a certain controller in my app. My app adapts
style and some content from the domain being called via request.host.
All of the domains are served up from apache-passenger vhost.
domain1.com is blue
domain2.com is red etc etc
However, in order to keep to a single SSL
Quee WM wrote:
Aldric Giacomoni wrote:
That is true - but since he mentioned a bit.ly link, I thought it would
be different for every row.
You are 100% right that it will be different for each row. With the help
of others on this forum I have written a callback function which
provides
thanks all for your suggestions. I'm investigating now. If others
have suggestions, please keep them coming.
--
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-t...@googlegroups.com.
To
Quee WM wrote:
Also I posted the same question on the ruby forum and one suggestion so
far is that
For one-shot scripts that are not exactly migrations,
But this is exactly a migration. It gets the database from one
consistent state to the next. That's the definition of a migration.
it
hi,
i have acomment field in my app which is kinda public, but i still
want to have certain control over of what a user can enter and what
not: eg not allowed are
- email addresses
- fake string like: user at gmail com
- ...
- ...
is there anything out there or am i better of using writing my
frankjmat...@gmail.com wrote:
the question that could summarize this in a nutshell is this:
does the orm structure of rails make it a poor framework to implement
a small erp/crm solution?
No. It should be fine.
if you got that then please read ahead - i need some suggestions...
ive
Pale Horse wrote:
a = Example One
a = a.split(/ /)[0]
In general, the way to solve a problem is to try and tackle it from
different angles.
Do you want to ...
a) remove everything after 'Example'?
b) remove the last four characters of the string?
c) remove everything after the first
John Mcleod wrote:
Hello all,
I'm in my third month of Ruby on Rails. I think it's coming along
fairly well.
My current issue is this.
I'm do a search based on string data some of which is very long. So I'm
doing a similar match using amatch gem.
When I have a 50% or greater match I
ActionMailer is expecting the constant SITE to be initialized.
I could put
SITE = 'http://localhost:3001'
in development.rb
but
what I would like to do is to set this constant programmaticly to the
current site.
Is there a way to do this?
--
Posted via http://www.ruby-forum.com/.
--
You
Hi all,
TestController
def show
@object = Object.find(params[:id])
end
I have show.html.erb which has the foll js in the head
script type='text/javascript'
$(document).ready(function($)
{
$(#divcontainer).load(first.html.erb);
Your Rails app classes are accessible in migrations, so you can call the
bit.ly link generator just like you would from the application itself.
Thanks for the info, did not know this before.
At this point, stop asking questions and go write some migration code.
If you run into trouble,
well i'd like to thank everyone who's given me some responses. i've
looked at all the precooked solutions that were suggested but what it
really boils down to is i enjoy the programming challenge and i'm
still not convinced i need/want to switch all the data in my app to
someone elses app. it just
env['HTTP_HOST']
Maybe?
On 1/7/10 9:27 AM, Ralph Shnelvar li...@ruby-forum.com wrote:
ActionMailer is expecting the constant SITE to be initialized.
I could put
SITE = 'http://localhost:3001'
in development.rb
but
what I would like to do is to set this constant programmaticly to
i guess what i meant to say was that if i created a user-defined
column then i (through some magical UI controls which i'd eventually
throw together) would like to be able to say is this column is an
integer.. and when i use that new user defined column it gets the
full benefits of
I wrote the relevant code in this pastie:
http://pastie.org/770642
(it's not too much code -- but it looks a ton better than black on
white!)
And here is the bit from my log:
Processing UltrasoundsController#index (for 127.0.0.1 at 2010-01-07
10:32:03) [GET]
Rendering template within
On Wed, 2010-01-06 at 18:59 +, Gary Doades wrote:
On 06/01/2010 6:36 PM, Craig White wrote:
On Wed, 2010-01-06 at 18:43 +0100, Marnen Laibow-Koser wrote:
Craig White wrote:
I could handle this fairly easily in PostgreSQL but for this project, I
am using MySQL...
On Jan 7, 11:03 am, John Mcleod li...@ruby-forum.com wrote:
Hello all,
I'm in my third month of Ruby on Rails. I think it's coming along
fairly well.
My current issue is this.
I'm do a search based on string data some of which is very long. So I'm
doing a similar match using amatch gem.
On Jan 7, 11:58 am, tom tomabr...@gmail.com wrote:
hi,
i have acomment field in my app which is kinda public, but i still
want to have certain control over of what a user can enter and what
not: eg not allowed are
- email addresses
- fake string like: user at gmail com
- ...
- ...
is
On Jan 7, 7:16 am, Raimon Fs li...@ruby-forum.com wrote:
Hello,
I've set-up a new computer and I'm having troubles with gems.
In the production server and in my old developer machine works perfect,
but in the nem I'm getting errors when I start them using thin:
On Jan 7, 2010, at 2:10 PM, timjd wrote:
I'm pretty new to ROR and working on a couple of small changes to an
upload function, changing how the input spreadsheet is parsed.
The problem is that the upload does not work on my Windows based
development platform. It does work on MAc and Unix
frankjmat...@gmail.com wrote:
i guess what i meant to say was that if i created a user-defined
column then i (through some magical UI controls which i'd eventually
throw together) would like to be able to say is this column is an
integer.. and when i use that new user defined column it gets
Could some kind soul help a confused programmer with a stupidly simple
gotcha?
I have an association like this.
Project has_and_belongs_to_many Contracts
Contracts has_and_belongs_to_many Projects
I want a simple array of contracts that belong to the project. Then I
want to grab each contract
On Jan 7, 11:26 pm, cntrytwist cntrytw...@gmail.com wrote:
During the @cts.each do block, I am performing more than just adding
to the all_contracts array. How do I dry up the two lines that create
the all_contracts array? I want just an array, not an instance of
AsociationCollection.
If
Philip Hallstrom wrote:
tc.row_id = r_id
tc.content = cell
end
Try getting the fields you want and putting them in directly, ignoring
any CSV stuff... That is, get them out of the CSV file, but don't let
your CSV library mess with them. Maybe
Ankur wrote:
Hi !
According to your relationships: resource :has_many = roles
but you are using pro.roles. It means project should has many
roles.Its totally wrong accordingly.
First fetch all project_resources for a particular project. Eg.
pr_resources =
Jarin Udom wrote:
Rails:
Makes common decisions for you so you can focus on the end result.
Works great for 99% of cases, but if you want to do your own thing for
special cases it's not hard to do.
OS X:
Makes common decisions for you so you can focus on the end result.
Works great for 99% of
Thanks for your help! So I'm trying to put this together, when I
create a new unit in the units table I also want the unit_id field
that is entered by the user to enter into the unit_id column of the
rates table as well. I know this stuff is simple, I'm still learning,
I've trolled through these
Hi Ralph,
On Thu, 2010-01-07 at 18:27 +0100, Ralph Shnelvar wrote:
ActionMailer is expecting the constant SITE to be initialized.
I could put
SITE = 'http://localhost:3001'
in development.rb
but
what I would like to do is to set this constant programmaticly to the
current site.
best choice is ajax
2010/1/8 Aldric Giacomoni li...@ruby-forum.com
I wrote the relevant code in this pastie:
http://pastie.org/770642
(it's not too much code -- but it looks a ton better than black on
white!)
And here is the bit from my log:
Processing UltrasoundsController#index (for
don't you need to specify
%p== #{rows} updated
??
On Thu, Jan 7, 2010 at 1:52 PM, Aldric Giacomoni li...@ruby-forum.comwrote:
I wrote the relevant code in this pastie:
http://pastie.org/770642
(it's not too much code -- but it looks a ton better than black on
white!)
And here is the bit
Hi,
I have posted the following message on Rails Engines forum but as there
is no activity their (strange isnt it?) I re-post it and extend it here.
Here we go:
[Engines, Rails App architecture in OpenSource context] EXTENDS
[Modularity, engines and loading:
Hi Guys,
I've managed to install Ruby on Rails on Ubuntu 9.10, got it that up and
running, installed mysql as well. I use Netbeans 6.8 as the IDE, and
from there I can connect from a RoR project to the database with
JDBCMYSQL connector, no problem.
I can run the project, and get to what seems to
Len Haasbroek wrote:
Hi Guys,
I've managed to install Ruby on Rails on Ubuntu 9.10, got it that up and
running, installed mysql as well. I use Netbeans 6.8 as the IDE,
You probably want to drop that. NetBeans is a great IDE, but it's
overkill for Rails. Rails does not really benefit from
76 matches
Mail list logo