anoyone?
On Jul 7, 9:09 am, cipher_neo l33...@gmail.com wrote:
Rack::Bug (https://github.com/brynary/rack-bug) is a tool for
profiling rails apps to find bottlenecks in the code.
It has a really nice HTML interface that you can access on the
production server.
The problem is that I am
I am using rails 3.0.7.i validate a field in form by inserting following
line in model
class Post ActiveRecord::Base
validates_presence_of :title
end
But i didn't work.Is there any syntax change in rails
3.0.7?
Thanks
amritpalpathak.blogspot.com
--
You received this
On Sun, Jul 10, 2011 at 1:19 AM, Hassan Schroeder
hassan.schroe...@gmail.com wrote:
On Sat, Jul 9, 2011 at 3:59 PM, Jarin Udom jarin.u...@gmail.com wrote:
... but it always kind of bums me out to see these how do I build a
complex application posts.
So, this space shuttle deal -- is there,
On Sun, Jul 10, 2011 at 12:59 AM, Jarin Udom jarin.u...@gmail.com wrote:
I'm obviously making a lot of assumptions here, but I've heard it's pretty
common for developers in India to be herded through diploma mill tech
schools and then realize after they get hired that they actually don't know
which will be the best web server and app server for rails 3
--
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.
To unsubscribe from this group, send email to
On Jul 9, 5:59 pm, johnnybutler7 johnnybutl...@gmail.com wrote:
Ive recently moved my files to amazon S3 storage. There is some
functionality to allow an archive of files to be downloaded to a user
via delayed job. So basically a project may have 10 documents in 10
different folders in the
On 10 July 2011 08:20, Amrit Pal Pathak amritpalpath...@gmail.com wrote:
I am using rails 3.0.7.i validate a field in form by inserting following
line in model
class Post ActiveRecord::Base
validates_presence_of :title
end
But i didn't work.Is there any syntax change in
As the question is improper, I feel like providing an improper answer.
...it works for me.
On Sun, Jul 10, 2011 at 2:15 PM, Michael Pavling pavl...@gmail.com wrote:
On 10 July 2011 08:20, Amrit Pal Pathak amritpalpath...@gmail.com wrote:
I am using rails 3.0.7.i validate a field in form by
Hi guys,
I've created 'emenu' gem that is supposed to take of burned of
maintaining and tweaking menu layout https://rubygems.org/gems/emenu.
It's main purpose is usage in larger projects or admin pages that have
a lot of options and a lot of rules regarding who gets to see what. It
is really
I don't know about the best, but I have decent experiences with NginX
Passenger.
I can send you some config files if you would like to take a look at
it.
I did try with Thin for app server, but it Passenger does the heavy
lifting for you so it's much more pleasant...
Best Regards,
Kresimir
You might also try nginx + thin, varnish caching the pages, and perhaps
HAProxy for load balancing.
On Sun, Jul 10, 2011 at 4:09 PM, drKreso kresimir.boj...@gmail.com wrote:
I don't know about the best, but I have decent experiences with NginX
Passenger.
I can send you some config files if
Thought so :( thanks for your reply.
On Jul 10, 9:23 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jul 9, 5:59 pm, johnnybutler7 johnnybutl...@gmail.com wrote:
Ive recently moved my files to amazon S3 storage. There is some
functionality to allow an archive of files to be
Hi,
I'd like to get your thoughts on something. We're developing an
application that relies heavily RESTful JSON requests.
Because I want to keep the code as clean as possible, I want to be
able to return the JSON for a user using @user.to_json. Which works
fine, but it also includes the
Hi!
I think you could use inheritance to extend ActiveRecord::Base and then you
could overwrite the to_json method.
There you could write the rules for default excluded column names.
Then, your Models should extend your inherited class.
I don't know if this work, it's just an idea.
Best
I get a string back from ffmpeg : 00:00:03.10( hh:mm:ss )
which class should I use to get it converted into 3.10 sec ( float)
thanks for your feedback
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email
I tried :
output = 00:00:03.10
output.split(':').inject(0){|a, m| a = a * 60 + m.to_f}
= 3.1
is there any better way ?
On Jul 10, 5:37 pm, Erwin yves_duf...@mac.com wrote:
I get a string back from ffmpeg : 00:00:03.10 ( hh:mm:ss )
which class should I use to get it converted into 3.10
Overwriting the as_json method in your model should work too I
think. Best way to to it IMO if it's just one model you want to change
the to_json behavior on.
def as_json(options={})
options[:except] ||= [:some, :fields, :here]
super(options)
end
On 10 Jul 2011, at 17:35, Everaldo Gomes
I liked the Peter's suggestion.
And I found this link in google, because I was curious about the as_json
method:
http://jonathanjulian.com/2010/04/rails-to_json-or-as_json/
Best Regards,
Everaldo
On Sun, Jul 10, 2011 at 1:37 PM, Peter De Berdt
peter.de.be...@pandora.bewrote:
Overwriting the
Hi All,
I'm starting a Rails 3.1 app. Two tests which involve invalid models are
failing and I don't understand why. The tests are the stock tests generated by
the rails rspec generator. I'm new to RSpec so I'm probably missing something
obvious. I'd appreciate some guidance.
**Leigh
Hey all,
I have been working on a project that would need text to be columnized
(2 to be exact) and converted to PDF format. The only problem is, I
can't get column-count, column-size, etc to work with wicked_pdf. Is
there possibly another solution of programmatically columnizing
(either through
I have a date in the sqlite3 database which gives me trouble
sqlite select * from accounts;
3|myname|2011-07-10 13:47:26.055000|2011-07-10 13:47:26.055000
putting it into html via the hidden_field.tag like this
%= f.hidden_field :updated_at %
here f comes from
%= form_for(@account) do
yep, I also realized one with Faye follwing the railscast messagin
with faye
was straight forward and works well also you want obviously do the
necessary tom improve the user experience a little.
On Jul 9, 5:11 pm, Stefano stefano@gmail.com wrote:
Probably the easiest (yes I know that might
On Sun, Jul 10, 2011 at 10:33 AM, Leigh Daniels leighdaniel...@gmail.comwrote:
Hi All,
I'm starting a Rails 3.1 app. Two tests which involve invalid models are
failing and I don't understand why. The tests are the stock tests generated
by the rails rspec generator. I'm new to RSpec so I'm
Thanks, Conrad.
I'm all green now!
**Leigh
On Sun, Jul 10, 2011, Conrad Taylor conra...@gmail.com wrote:
Leigh, you're controller spec appear to be missing a call to the following:
render_views
Thus, you'll need to add this line inside the first describe block of the
jobs_controller_spec.rb.
How are others doing duplicate record detection? I'm not finding very many
solutions, or methods online. I found one called SimString, but not much
else. I was wondering how others are detecting duplicates. Similar to
suggested items, I would like to show records that may match or have similar
DK dk.kahn@... writes:
As far as cached, I see in top:
Mem: 3994516k total, 3830048k used, 164468k free, 119540k buffers
Swap: 905208k total, 0k used, 905208k free, 3207936k cached
Being simplistic, I would not worry about it unless the swap file is actually
being
Hello Hassan,
good question. I found 4 ways when I tried:
1. EngineY - Seems exactly for this goal but I dunno much.
2. LovdByLess - it's fancy but not upgraded yet. You might wanna
upgrade it yourself )I tried, writing a new one is easier for sure).
3. Insoshi https://github.com/gezope/insoshi
On Sun, Jul 10, 2011 at 5:53 PM, gezope gez...@gmail.com wrote:
Hello Hassan,
good question.
Erm, thanks, but it wasn't my question. At the moment I'd much prefer
seppuku to trying to implement YASN, in any form. :-)
--
Hassan Schroeder hassan.schroe...@gmail.com
On Mon, Jul 11, 2011 at 3:17 AM, Hassan Schroeder
hassan.schroe...@gmail.com wrote:
Erm, thanks, but it wasn't my question. At the moment I'd much prefer
seppuku to trying to implement YASN, in any form. :-)
I don't know which is more pointless in 21st century, YASN or CMS. But
hey, even
aj airjaw@... writes:
I have the radio buttons, the images, and the comment field set up.
I'm not sure how to pre-select one of the images and wire it to
transmit a value.
Old(ish), but relevant. http://railscasts.com/episodes/52-update-through-
checkboxes
--
You received this message
You could convert the string to a time object and pick out the
specific parts you want. This might come in handy if you want to store
the time in the database at some point.
http://api.rubyonrails.org/classes/Time.html
On Jul 10, 11:47 am, Erwin yves_duf...@mac.com wrote:
I tried :
output =
Hello All,
I have Ubuntu 11-04, I would want to install ruby 1.9.2/1.9.1 and Rails
3.x. I need the least complicated way of doing this.
Rgds,
Janus
--
*Satajanus Nig. Ltd
*
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post
Please Use RVM.
details is on this link
http://www.web2linux.com/05/installing-rails-3-on-ubuntu-10-04-lucid-lynx/
On Mon, Jul 11, 2011 at 11:02 AM, Emeka emekami...@gmail.com wrote:
Hello All,
I have Ubuntu 11-04, I would want to install ruby 1.9.2/1.9.1 and Rails
3.x. I need the least
http://rubyhyderabad.blogspot.com/ If you want to install using rvm.Go
through these steps.
Cheers,
Sai
On Mon, Jul 11, 2011 at 11:07 AM, rajeevsharma86
rajeevsharm...@gmail.comwrote:
Please Use RVM.
details is on this link
Use RailsReady. It's a one-step setup script to get rvm and ruby running.
http://thechangelog.com/post/2857400260/railsready-setup-script-to-get-ruby-and-rails-running
On Mon, Jul 11, 2011 at 11:23 AM, saikiran mothe
saikiran.mo...@gmail.comwrote:
http://rubyhyderabad.blogspot.com/ If you
35 matches
Mail list logo