Thanks guys,
All pages have been bookmarked.
I appreciate all the insight.
On Dec 28, 9:15 am, Rick DeNatale rick.denat...@gmail.com wrote:
On Mon, Dec 28, 2009 at 12:02 AM, pepe p...@betterrpg.com wrote:
Sorry if this is not the appropriate forum for the question.
How long does it take
and is used by most/many Rails developers? It sure would be
nice to know.
We are looking for info, that's all.
conrad:
Thanks for the comments and the links. They are appreciated.
On Dec 28, 1:59 am, Marnen Laibow-Koser li...@ruby-forum.com wrote:
pepe wrote:
Marnen, the same could be said
Sorry if this is not the appropriate forum for the question.
How long does it take to get used to using git? I have never used a
version control system and I don't want to go through the pain much
longer.
Thanks in advance.
Pepe
--
You received this message because you are subscribed
Marnen, the same could be said, for example, for anybody asking for
information about how to create a PDF document in a Rails application.
A PDF document has nothing to do with Rails but it can be created
using Rails. It is just nice to get answers when you don't really know
where to even start
to look at the git website for documentation and
tutorials.http://git-scm.com/documentation
Regards,
James
On 28/12/2009 6:02 p.m., pepe wrote:
Sorry if this is not the appropriate forum for the question.
How long does it take to get used to using git? I have never used a
version control
Will play with it. Thanks a lot. :)
On Dec 11, 2:53 am, Kristian Hellquist kristian.hellqu...@gmail.com
wrote:
2009/12/11 pepe p...@betterrpg.com:
Thanks Kristian.
I've thought about this and what I would probably do is store the
information for ActionMailer in a YAML file. Getting
I'm sorry, I meant 'restart the web server' instead of 'restart the
web service'.
My apologies.
On Dec 9, 6:06 pm, pepe p...@betterrpg.com wrote:
Hello,
I have the task of making ActionMailer configurable by a user and be
able to use the new configuration without the need to restart the web
Thanks Kristian.
I've thought about this and what I would probably do is store the
information for ActionMailer in a YAML file. Getting the data is not a
problem, the problem is how to make ActionMailer use the changed
configuration without restarting the web server.
If I am not mistaken if the
.
Is there a way of making the configuration dynamic?
Thanks in advance
Pepe
--
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
I'll second Marnen's idea.
With a DB you'll get random access to any record. Using a CSV you'll
either have to read record by record until you find what you need or
dump everything to an array or hash and then get it from there. I
think it's actually more work going the CSV approach.
On Nov 9,
Hi all,
Is there an apllicaiton that allows to handle an Online Web Calendar,
similar to the TaDalist.com?
Regards
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
No estoy seguro porque soy lo más lejano a un experto que se pueda
encontrar en el tema de configuraciones pero huele a que tienes algún
timeout setting con un límite de alrededor de 60 segundos.
On Oct 29, 10:22 am, Laura Cordoba rails-mailing-l...@andreas-s.net
wrote:
Hola, tengo un problema
In my opinion de future of RoR is brilliant. It does certain things
much better than other environments. Ruby is extremely powerful and
flexible, which translates into an extremely powerful and flexible
framework: Rails.
Java is a great language and incredibly robust for certain things but
for
The only reason I would see for doing something like this is if there
were something that one of the platforms offers that the other one
does not have or if doing something in one of the platforms is so much
easier that it would be a waste of time trying to duplicate it in the
other one.
My
and redirect to an
error page, I guess.
Pepe
On Oct 20, 11:22 am, mattwynne matt.wy...@gmail.com wrote:
Hi,
We've had some requests though for nonsense URLs which have slipped
through to our controllers and caused ActionView::MissingTemplate
exceptions. They're from URLs like
/artists/123
I don't think you'll be able to do that. I am assuming that you mean
the user being able to kill the application. Remember that the user
will probably be removed from the server that runs Rails and he/she
won't have access to it. That access is only available through the
browser.
The only way
What do you mean by restarting the application? Do you mean end the
session (if any) and (re)display the login/index/initial page?
If you need to end a session you can do it with this:
reset_session
To send a user to the login/index/initial page you can just use a
redirect:
redirect_to
://www.scrumpad.com
On Oct 4, 12:21 pm, pepe p...@betterrpg.com wrote:
Hi.
I need to upload a CSV file in my application and I am trying to do so
with a sample I found googling around, which defines a model that
inherits from ActiveRecord::Base.
The problem I am having is that whenever
that there is no table behind the
model? And if that is not possible, is there a way to instantiate an
ActiveRecord::Errros object inside the class without inheriting from
ActiveRecord::Base and make it work the same way as it usually does?
Thanks.
Pepe
--~--~-~--~~~---~--~~
You
I believe you can do that in the adapter itself. You should be able to
find it under your activerecord folder (in my PC: C:\ruby\lib\ruby\gems
\1.8\gems\activerecord-2.2.2\lib\active_record\connection_adapters
\mysql_adapter.rb). Look for class MysqlAdapter AbstractAdapter in
the code and you'll
Here it is:
http://adityakircon.blogsome.com/2009/05/07/how-to-install-actionwebservice-in-rails-2/
On Aug 25, 5:54 am, Sushrut Sathe rails-mailing-l...@andreas-s.net
wrote:
API- hello_message_api.rb.
class HelloMessageApi ActionWebService::API::Base
api_method :hello_message, :expects =
I am running into issues as well. I believe this is due to the fact
that Rails stopped providing SOAP support at 2.0 and doesn't do any
longer the 'behind the scenes' thing it used to do for SOAP. I found a
post that explains how to get ActionWebService to work again with SOAP
but I lost the
If you don't want to create a model you can use straight SQL with
ActiveRecord::Base.connection.execute. I would create the model,
though. It would be the hell of a lot simpler and cleaner.
On Sep 29, 5:37 am, Tushar Gandhi rails-mailing-l...@andreas-s.net
wrote:
Hi,
I have a question that Is
I'm not sure of what you need to do but I'll assume that you just want
to create an association between a person and a vehicle of type car or
truck (or whatever).
I am assuming that you have STI built into your vehicles table, with a
column named 'type' that stores the type of vehicle
I don't know if this could help but I had kind of a similar problem at
one point. After much research I ended up coming across a solution by
which you can modify in your model the value returned from the DB. You
have to override the reader method (code below). This worked for me
only when reading
Could it be that the DB itself ha constraints you're not thinking of?
For example, not nullable fields that are getting a null.
Are you using a bang method (save! or create!)? If you're not, change
it at least for testing, it will most likely make the app. raise an
error and might be very
My guess is that your syntax is incorrect and you are missing the name
of the partial to render itself and also either the :object
or :collection symbols.
This is from the documentation to rendering partials, in case it
helps:
# Renders the same partial with a local variable.
render
Sorry, I should also have added to take a look at
ActiveSupport::CoreExtensions::Numeric::Time, which allows something
like 1.week.from_now, 1.week.ago, etc.
On Sep 19, 6:32 pm, pepe p...@betterrpg.com wrote:
For the holidays you are going to need to store them somewhere as was
already pointed
For the holidays you are going to need to store them somewhere as was
already pointed out in another post since they might even vary by
company. Calculating the weekend days should be easy using the
extended functionality for dates that Rails offers. You can check the
Did you try to change the environment in your computer from
development to production and run the application that way? Maybe the
problem is seeing only in production mode and you can reproduce it.
On Sep 17, 9:08 am, Cyril Lavedrine lavedrine.cy...@gmail.com wrote:
Hello,
I've uploaded my
If you have the time get a copy of the book Ajax on Rails (O'Reilly).
It's excellent.
On Sep 16, 1:35 pm, Patrick Doyle wpds...@gmail.com wrote:
I would like to add a visual effect to one of my web pages and in the stage
where I don't know what I don't know. I've talked to my buddy Google
If you have built your form from an instance variable you can get the
screen values back into an object with:
@my_object = MyClass.new(params[:my_object])
Then render the view and you should be done.
On Sep 16, 9:10 pm, Matt mattbog...@gmail.com wrote:
Thank you all for your reply. The
hi,
add :target = blank, or take a look at www.agilente.eu. This is my
site
and in the articles all external links use a js to pop up a new window
to be xhtml
strict compliant.
On Sep 13, 1:38 am, MS999 msefar...@gmail.com wrote:
Hi,
How do you add a new line using RoR?
What do I need to add
Hi,
I have been battling something for a good hour and a half and finally
realized how to 'solve' the issue but I am very confused as of why I
should do what I just did.
I have 2 classes:
class User
has_many :audits
...
end
class Audit
belongs_to :user
...
end
The way things need to
http://itsignals.cascadia.com.au/?p=12
--
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
http://railsforum.com/viewtopic.php?id=12787
--
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
What about substruct?
Rails Girl wrote:
Spree and Ecom.
Both are good.
--
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
Hi all
I am looking for any template or application that will help me setting
up a survey for statistical analysis
thanks
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi all
Could you please recommend an open-source Ruby on Rails E-Commerce?
Something that I can use as a framework, or as a template to build an
e-store
thanks
j
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because
pass this? What is this?
Pepe
On Sep 3, 1:02 am, Sijo Kg rails-mailing-l...@andreas-s.net wrote:
Hi
I have a name field And it has no validation And when I update that
field with this
!...@#$%^*()_+|}{:?,./;'[]\
It gives error
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib
The optional question should be pretty easy to solve.
ActiveRecord::Base has a method called 'connected?'.
I am not that experienced with multiple connections, though, so I'd
rather let somebody else give you an more intelligent answer than I
would.
Pepe
On Sep 3, 1:32 am, Marc Hoeppner rails
Have you tried Instant Rails? http://rubyforge.org/projects/instantrails/
Pepe
On Sep 3, 6:37 am, 1337 94m3r 133794...@gmail.com wrote:
I have ruby installed, and also apparently gems installed.
I tried doing gem install rails
I also have tried downloading the gem and then installing
Check String#gsub! at http://corelib.rubyonrails.org/
Pepe
On Sep 1, 9:12 am, prashanth hiremath prashanthhirema...@gmail.com
wrote:
I want to replace nbsp to amp in xml file can anybosy help me
Regards
Prashanth
--~--~-~--~~~---~--~~
You received
In case this is of use to anybody here is what I did to use STI and
validate the contents of column type...
I have a users table with a column named 'type' to implement STI and.
The Admin should be the only one being able to maintain the table. My
model was running validations on the contents of
I've been reading all along but had nothing to offer to help. I'm very
glad you got it solved. :)
On Aug 21, 11:22 am, Fernando Perez rails-mailing-l...@andreas-s.net
wrote:
Hi,
I finally solved my problem. It was a regular expression that failed on
a specific URL which locked the process! I
Read about routes. I'm not an expert but I remember reading about
being able to set a default 'catch all' to redirect wherever you want.
Pepe
On Aug 19, 12:13 am, brianp brian.o.pea...@gmail.com wrote:
Hey,
I was wondering. If someone travels to a url ie.
app.com/controller/method
How about saving the object in a session value?
session[:my_object] = my_object/@my_object
The next action could just retrieve it easily:
my_object/@my_object = session[:my_object]
Pepe
On Aug 5, 4:57 am, Zhao Yi rails-mailing-l...@andreas-s.net wrote:
I use form_tag like below
I'd bet I'm not the only one waiting to see your beautiful code. ;p
Pepe
On Jul 29, 4:18 am, Rakoth rakot...@gmail.com wrote:
difficult to provide anything more ugly
for tax in @taxes
next if ! (tax.taxauthid === [ 24, 25, 26, 27, 36, 37, 38, 39])
print tax.taxamount
Marnen Laibow-Koser wrote:
Like what? I confess that I'm extremely hard-put to think of a mySQL
feature that PostgreSQL doesn't have. (Syntax is sometimes different,
but you probably shouldn't be writing literal SQL in a non-portable way
in Rails.)
fulltext search. each database or
.
Pepe
On Jul 12, 4:35 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jul 12, 3:43 pm, pepe p...@betterrpg.com wrote:
When a user is retrieved for access and functionality validations, I
re-retrieve the user through the specific user class as in:
user = User.find
route because I was it was shorter and easier
than anything else I could think of. If there is a better way of doing
this I'd appreciate a comment on it.
Thanks to all.
Pepe
On Jul 12, 10:43 am, pepe p...@betterrpg.com wrote:
Hi all,
I found what I think is a slick solution to a problem of mine
Another approach to checking for emptyness in case you need it:
Table.count.zero?
On Jul 10, 11:53 am, melomane meloman...@gmail.com wrote:
Hi
In my web application, a table must have only one record. So when
there is no record, user can add a new row to the table, (a add link
is shown)
= user.category.capitalize.constantize.find(user.id) if user
From that moment on I have the user retrieved through its correct type
and my associations work wonderfully.
Is there a better way of making this work?
Thanks.
Pepe
--~--~-~--~~~---~--~~
You received
Thanks a lot. I'll play with it. :)
Pepe
On Jul 12, 11:14 am, Älphä Blüë rails-mailing-l...@andreas-s.net
wrote:
Users:
id
category # can be either 'ADMIN', 'AUDITOR' or 'TENANT'
Audits:
id
auditor_id
tenant_id
Looking at this original Table format you have two
heroku seems very nice, i was about to deploy an app there to
check it out but they do not support mysql. :(
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
Marnen Laibow-Koser wrote:
Shouldn't matter. Most Rails apps are DB-neutral enough that Heroku
should support them just fine.
this particular app uses mysql specific features.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this
Tony Stricker wrote:
my boss asked me to make some web forms for us to sign up new affiliates
and customers with - i made the decision to learn rails on my own. as
an intern, i'm given a lot of freedom which i couldn't be more grateful
for. the web forms weren't urgent, and i was looking
First off, deployment is not trivial so if you are an intern you should
be doing this under the supervision of a more experienced
developer/system adm. In other words, your boss made a mistake and
assigned you to the wrong position or is deliberately using you as cheap
workforce (which
with Javascript.
Pepe
On Jun 30, 8:37 pm, Zhao Yi rails-mailing-l...@andreas-s.net wrote:
I want to check user input in a form before submit. Is there a standard
way to do this in Rails?
--
Posted viahttp://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received
are thankful for
that 'feature'. It saves us a lot of $$ in gas and possibly stops
countless accidents.
My 2 cents.
Pepe
On Jun 12, 11:43 am, Max Williams rails-mailing-l...@andreas-s.net
wrote:
Matt Jones wrote:
On Jun 11, 12:07 pm, Max Williams rails-mailing-l...@andreas-s.net
wrote:
argghh
' or 'production', depending on which DB I
was using.
I thought that Rails would 'know' which DB to use. Am I wrong? Should
I have added any type of setup value in 'environment.rb'/other place
to avoid all this?
Thanks.
Pepe
--~--~-~--~~~---~--~~
You received
',
:user = 'my_user' )
in the model and no :ube declaration in database.yml
As I understand using 'establish_connection' by itself would connect
me to the 'current' DB, wouldn't it?
Thanks.
Pepe
On May 31, 11:59 am, Maurício Linhares mauricio.linha...@gmail.com
wrote:
Stupid question, did
So it was ME! :)
Thanks a lot Mauricio. As usual, it was so much simpler than I
thought. Works like a charm.
Thanks!
Pepe
On May 31, 5:17 pm, Maurício Linhares mauricio.linha...@gmail.com
wrote:
Here's how it would look like:
class YourModel ActiveRecord::Base
establish_connection
, which I already know would work?
ruby: 1.8.6
rails: 2.3.2
Database: Oracle 10g
Thanks.
Pepe
--~--~-~--~~~---~--~~
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
not use
SQL, which allows me to create the records the way I need.
Thanks a lot.
Pepe
--~--~-~--~~~---~--~~
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
Corrections:
If I change the primary key description in the model and specify the
column ID (self.primary_key = 'id') I can assign values to ID, the
model shows the values I entered but they are overridden anyway by the
DB.
Pepe
On May 22, 9:12 pm, pepe p...@betterrpg.com wrote:
ruby: 1.8.6
in the field and no more, so 'extra empty space' is not
wasted. In other words, I think you should be fine, especially if you
clean up session information as sessions expire.
Pepe
On May 5, 3:42 am, Joshua Partogi joshua.j...@gmail.com wrote:
Dear all,
I just created session with rake
be wrong, though. I am not a Rails expert.
Since you are going to be trying to create the connection from a Ruby
program your program will be able to replace your variables with
values so my guess is that yes, you can do it. Have you tried?
Pepe
On Apr 30, 4:41 pm, elioncho elion...@gmail.com
made the application magically work.
Thanks a lot guys.
Pepe
--~--~-~--~~~---~--~~
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
and everything is identical except for the field names. Controller
code does not seem to be a problem either. Checked logs and I can't
see anything obviously wrong either. Searched the web but found
nothing.
Any help would be appreciated.
Thanks a lot.
Pepe
in session variables and I have read that
there are changes as how sessions behave with 2.3.2. Any ideas what
might be going on?
Thanks a lot.
On Apr 26, 8:43 am, pepe p...@betterrpg.com wrote:
Hello.
ruby 1.8.6 (patchlevel 111)
rails 2.3.2
Windows XP Professional
I am getting quite a weird
expert.
Thanks
On Apr 26, 9:41 am, pepe p...@betterrpg.com wrote:
Still trying to figure this out. Some more info:
The auto-complete field that does not work depends on the values
entered in 2 other auto-comple fields. In development the 2 fields are
being updated correctly but not when
the session variables I store those values in work fine and
contain data but when I change to production those session variables
are not being updated.
I am using one controller only, if that means anything.
Thanks.
On Apr 26, 7:19 pm, 7stud -- rails-mailing-l...@andreas-s.net wrote:
pepe wrote
= elevator_timeslots.id and
elevators.booked_date = ?), params[:booked_date]])
Now you have an array (between the square brackets) and the value of
the second element (params[:booked_date]) will replace your question
mark.
Pepe
On Apr 26, 11:48 am, Darren Strom rails-mailing-l...@andreas-s.net
wrote
I had to do the same and for me it worked with no problem.
Have you tried to restart WEBrick/Mongrel/other?
Pepe
On Apr 18, 11:04 pm, Rajat Garg raja...@gmail.com wrote:
Folks,
I am trying to upgrade code base from 1.3.x to 2.3.2 and not
surprisingly, lot of things are broken
executed. That is the reason you should use return, as the
rest of the posts suggest.
Good luck.
Pepe
On Mar 24, 9:23 pm, Zhao Yi rails-mailing-l...@andreas-s.net wrote:
My web site has a login feature. What I want to do is to design
different page for different account. But in an action, I
Hi there,
I've never done something like that but I can imagine you could do the
validation in your controller. When the action is invoked you can
check the values received in the params hash and act accordingly.
Pepe
On Mar 21, 12:42 pm, Rails List rails-mailing-l...@andreas-s.net
wrote
start Mongrel (ruby script/server) I get the error above. I've
looked everywhere I can think of. Any ideas what might be happening?
Thanks a lot.
Pepe
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Never mind.
I installed oci8 as a gem and it seemed not to like it. I uninstalled
the gem and then donwloaded the version that needs to be installed by
running a ruby program and now everything is happy.
Sorry for the interruption.
Pepe
On Mar 21, 10:29 pm, pepe p...@betterrpg.com wrote
Fred Cheung. Most helpful.
Pepe
On Mar 17, 2:38 am, Cwi Tech guy rails-mailing-l...@andreas-s.net
wrote:
Hi,
I am looking for the most knowledgeable ROR developers on this board.
In your opinion, who are the most knowledgeable and helpful users on
this board?
I am offering a free 1 year
Hi all,
I am looking for most popular ruby on rails applications that are
currently implemented, and also who is using RoR to build new
applications
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are
usuario) y cuántos registros hay en cada página.
Con esos dos datos puedes seleccionar los registros que necesites de
tu completo resultset y generar la página con ellos.
Espero que esto te ayude.
Pepe
On Mar 3, 5:14 pm, Oraldo alarcon rails-mailing-l...@andreas-s.net
wrote:
como esta la cosa amigo
This is a MySQL page where it talks about table locking:
http://dev.mysql.com/doc/refman/5.0/en/lock-tables.html
Pepe
On Mar 2, 9:59 am, Vetrivel Vetrivel rails-mailing-l...@andreas-
s.net wrote:
Frederick Cheung wrote:
On 2 Mar 2009, at 10:42, Vetrivel Vetrivel wrote:
Fred
Please
I'm not sure the type of validation you need on the field. This is
something simple I did for an application I wrote:
phone =~ /^\d{10}$/ phone.to_i = 9
This will make sure that the string contains only 10 digits (/^\d
{10}$/) and that the 10 digits are miningful or the number
Sorry, made a mistake, the result of number_to_phone would be (123)
456-7890 (I missed the 0).
And about the number of digits, I said \d{10} makes sure the string
contains only 10 digits. What I meant is that the string will have to
contain a total of 10 digits, no more, no less.
Pepe
On Mar 2
trailing zeros after are always trimmed after a
decimal point.
Pepe
On Feb 28, 6:30 pm, Matt Jones al2o...@gmail.com wrote:
There appear to be some good solutions here, but I thought I'd jump
in
with a bit of non-Rails technical detail.
I'd double check with the source of this data
string = '10.0'
string.sub!(/\.\d+/, '')
This will replace in place (sub!) any dot (\.) followed by at least
one number (\d+) with nothing ('').
Pepe
On Feb 27, 4:37 pm, northband_101 northb...@gmail.com wrote:
Awesome - this is a start - I'll take it from here.
Thanks!
On Feb 27, 4:14 pm
Sorry, I didn't read your first posting fully. My solution will not
work for the case of 482.600.
Pepe
On Feb 28, 10:12 am, pepe p...@betterrpg.com wrote:
string = '10.0'
string.sub!(/\.\d+/, '')
This will replace in place (sub!) any dot (\.) followed by at least
one number (\d
OK, got something working you might be able to use.
Just to make things more complicated:
s = '19.0 / 482.600 mm / 19.060 / 482.600 mm'
s.gsub!(/(\.0?[^0])?0+/, '\1').gsub!(/\.[\s\n]/, '')
Pepe
On Feb 28, 10:13 am, pepe p...@betterrpg.com wrote:
Sorry, I didn't read your first posting fully
siguiéndolo te funciona el tuyo.
Pepe
On Feb 26, 4:37 pm, Oraldo alarcon rails-mailing-l...@andreas-s.net
wrote:
hola hermano un saludo fuerte
men me puse a hacer lo que me dijistes pero tampoco funciona medio he
resuelto el problema de esta manera
sql = autosys_db.prepare(SELECT
mejor para acciones muy complejas y tus problemas
se van a solucionar de golpe.
Pepe
On Feb 26, 4:37 pm, Oraldo alarcon rails-mailing-l...@andreas-s.net
wrote:
hola hermano un saludo fuerte
men me puse a hacer lo que me dijistes pero tampoco funciona medio he
resuelto el problema de esta manera
I see 2 ways you could do this
1. Re-open the class that offers the functionality and add your code
to modify the behavior. I would not recommend that. I like leaving
code that I didn't write as it is.
2. Create something very simple that receives the parameter you need
and acts accordingly to
Maybe you can convert them to integers?
my_float = 2.0
my_float = my_float.to_i if my_float == my_float.to_i
Pepe
On Feb 27, 1:20 am, northband northb...@gmail.com wrote:
Hi -
I am working with floats and am wondering how I can trim the decimal
and trailing zeros on my whole numbers
%= mi_tabla.columna1 %/td
td%= mi_tabla.columna2 %/td
td%= mi_tabla.columna3 %/td
/tr
% end %
/table
%= @page.number %
%= link_to( Prev, :page = @page.prev.number) if @page.prev? %
%= link_to( Next, :page = @page.next.number) if @page.next? %
Pepe
On Feb 26, 4:37 pm, Oraldo
environment.rb (al final del fichero):
require 'paginator'
Espero que ésto te ayude. Buena suerte.
Pepe
On Feb 21, 11:37 am, pepe p...@betterrpg.com wrote:
Lo siento pero no he utilizado nunc la función de paginación en Rails,
pero voy a empezar pronto, posiblemente este fin de semana o la semana
para oracle tu vida sería muchísimo más sencilla. Eso es lo
que estoy haciendo yo. Cuando lo utilizas todo resulta mucho más fácil
porque puedes seguir las convenciones de Rails.
Pepe
On Feb 21, 10:01 am, Oraldo alarcon rails-mailing-l...@andreas-s.net
wrote:
pepe wrote:
Hola.
Te iba
Hola.
Te iba a responder ahora mismo. Me alegro de que resolvieras el
problema. Lo de paginar supongo que te refieres a leer un número
determinado de registros? Si es eso me parece que se hace con la
palabra limit.
On Feb 20, 1:00 pm, Oraldo alarcon rails-mailing-l...@andreas-s.net
wrote:
valores y el código aparece ya
utilizando c[0] entonces lo único que te falta es utilizar también c
[1] y lo tendrías solucionado.
Buena suerte.
Pepe
On Feb 19, 9:24 am, Oraldo alarcon rails-mailing-l...@andreas-s.net
wrote:
pepe wrote:
Perd n, deber a haber dicho 'cada array interno deber
el valor en
patalla como valor interno.
Espero que esto ayude.
Pepe
On Feb 18, 8:38 am, Oraldo Segundo rails-mailing-l...@andreas-s.net
wrote:
pepe wrote:
Hola
A la gente aqu no parece que le guste mucho cuando los mensajes no
son en ingl s. Aparte de eso la descripci n de tu problema
Perdón, debería haber dicho 'cada array interno debería contener...'
Pepe
On Feb 18, 11:43 pm, pepe p...@betterrpg.com wrote:
What is the URL for the Spanish forum? I'll switch to answer there if
somebody gives it to me. Thanks.
Lo siento mucho pero sigo sin entender el problema. Quizá
301 - 400 of 451 matches
Mail list logo