something).
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion
For ActiveRecord in Rails 2.3, you can use
.construct_finder_sql({})
tonypm
On Saturday, 14 April 2018 15:13:15 UTC+1, Hassan Schroeder wrote:
>
> On Fri, Apr 13, 2018 at 10:13 PM, nyt1972 >
> wrote:
>
> > I want to ask Is there any tool to convet ActiveRecord 2.3.5 sta
I have an application which has a resource called cables. But after
upgrading to Rails 5.0.1, I can no longer access the cables index page.
in the log I get:
Started GET "/cables" for 127.0.0.1 at 2017-03-02 12:32:04 +
Started GET "/cable/s"[non-WebSocket] for 127.0.0.1 at 2017-03-02 12:32:
Several years ago, I had a similar desire to have a screen representation
of a category tree. I was very surprised that I couldn't find any
pre-baked solution, so I built my own (there may be one out there now of
which I am unaware). Unfortunately, I have never got round to making my
code pub
On Monday, 23 March 2015 17:07:24 UTC, dasibre wrote:
>
> I'm not completely certain, but I think you might find some insight by
> looking at ActiveModel
>
> On Tuesday, March 17, 2015 at 10:14:27 AM UTC-4, tonypm wrote:
>>
>> Hi,
>>
>> I am worki
Hi,
I am working on building an api client for the Rakuten MarketPlace. I have
got some test requests for add delete update etc working and thought I
should aim to structure it as a Gem and publish it so that others can use
it/enhance it.
I havn't built a Gem before (worked mostly within the
parts
being upgraded do have up to date tests.
I would be interested on any wisdom from others who have already trodden
this path.
Thanks
tonypm
On Thursday, 3 July 2014 20:54:59 UTC+1, Rob Biedenharn wrote:
>
>
> On 2014-Jul-3, at 15:49 , Rob Biedenharn > wrote:
>
>
&g
On Friday, 9 August 2013 18:04:54 UTC+1, tonypm wrote:
> I am using rails 2.3, and have overridden an attribute.
>
> I am building a before_save callback, and would like to check if the
> attribute has changed - but can't figure out a way to do this.
>
>
>
Sorr
I am using rails 2.3, and have overridden an attribute.
I am building a before_save callback, and would like to check if the
attribute has changed - but can't figure out a way to do this.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group
One approach may be to build the data as a large csv. Which you could do
from ruby if you wished and you can then keep as a file. Then either
import directly to the db with sql or workbench etc. or if you want to stay
ruby, load the csv and use ar_extension import to dump the data into the
d
Redcar completely suits me as a free highlighting editor with a good file
browser and multiple display tabs and side by side editing.
On Saturday, 16 March 2013 04:40:37 UTC, Jason Hsu, Android developer wrote:
>
> What are your favorite IDEs for Ruby on Rails? Are there any good IDEs
> that
fist I've heard of it again this year. What secret society do you need to
belong to to get a ticket - lol
> We'd love to see you there.
*I'd love to be there!*
In anticipation
Tony
On Tuesday, 22 January 2013 16:22:34 UTC, James Adam wrote:
>
> There's a good chance you've already seen th
This guide pretty much worked for me as i recall.
http://library.linode.com/frameworks/ruby-on-rails-nginx/centos-5
On Thursday, 1 November 2012 16:00:59 UTC, Norbert Melzer wrote:
>
> 2012/11/1 keerthi priya >:
> > Thanks Norbert. i have installed ror on cen os . i can help me out for
> Nginx
ady provide most of the
functionality I require.
I am sorry this is not a direct answer, but hopefully it may help to
clarify what you are trying to achieve and how you are going to go about it.
Tonypm
On Monday, 29 October 2012 23:05:43 UTC, Ruby-Forum.com User wrote:
>
> Hi there i have this is
I have just been reading this and finding it helpful background with
some nice examples:
http://madebydna.com/all/code/2011/12/05/ajax-in-rails-3.html
On Oct 29, 10:41 am, 1334 wrote:
> On Friday, October 26, 2012 5:38:20 PM UTC+2, Fahim Patel wrote:
>
> > Hi all,
>
> > Can any one tell me h
I switched to Redcar a while ago and whilst not the fastest tool out of the
box, it is actually pretty good.
Being still in development, it still has a few bugs. It can be a bit
fiddly to set up since it needs a java runtime. It is a bit slow on
startup, and can lose track of which window h
What I actually find most important is being able to do a well worded
google search (I sometimes wonder if there should be a qualification for
that in itself lol?). The Ruby and the Rails forums are very friendly and
helpful.
I usually start a google search with Ruby or Rails and the versio
Just started going through - it is nice - thanks for the info!
--
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
rubyonra
Correction, just checked and doesn't look like I used a plugin so
can't say how good plugin is!
On Apr 20, 8:24 am, tonypm wrote:
> I have used CKEditor for some time with no problems, I have one page
> with several editor instances and it works fine.
>
> There
I have used CKEditor for some time with no problems, I have one page
with several editor instances and it works fine.
There is a rails plugin
https://github.com/standout/rails-ckeditor
I think this is the one I used
Tony
--
You received this message because you are subscribed to the Google Gro
On Mar 17, 11:04 am, Frederick Cheung
wrote:
> Could you just tell rails that categories_id is the primary key? If
> it's unique then that should be good enough (you'll probably have to
> be a little careful when creating rows in this table though, as you'll
> need to set categories_id each time
Hi,
I have looked around quite a bit, and haven't found any workable
solution to this.
I am accessing an external/remote database from my rails app, in order
to update a categories table.
I cannot change the table structure of the remote database. it has a
categories table with an id field but
It is funny. The last time I followed a long thread about rails
editors, the enthusiasm seemed to be for emacs. So I installed it and
got used to it. It has some very good features, the first time I
installed it I had trouble setting up the packages I needed for rails/
haml etc. But recently wh
r report, or I manage to
create a nice object oriented structure to something I am trying to
solve.
hope this encourages you
Tonypm
--
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 rubyon
>
> Would the Snail gem help?
>
>
Thanks Marnen, looks like it may be of use, or at least a starting
point.
I'll play with it and see
Thanks
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post t
such as Initials in caps etc.
I know this is not strictly Rails, but it is for a rails project and I
couldn't think of another forum that I could pose this question on.
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
cepts are discussed and appreciate links to useful
resources. (thanks to those who contribute)
Finding time to keep up with changes as well as doing actual
development is quite a stretch.
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: T
wise wouldn't it just
be better to say nothing.
I have been feeling these things for several weeks now, and my
disappointment in the rails community has been growing. This post
just tipped the balance so I felt I had to make a comment.
with very best intentions
Tonypm
--
You received this
f the above services?
> Fees? Processing fee per transaction? Monthly billings, etc?
>
> Any additional information will be appreciated.
This question interests me too. Strange not to have got any response
to this- I wonder how many people have actually implemented a payment
gateway o
been saved to the
database
def save_file(filename)
File.open "#{RAILS_ROOT}/tmp/#{filename}", 'w' do |f|
f.write contents
end
end
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To pos
the select which would cause
the required partial to be displayed. Using this approach keeps the
server in control of what is being displayed.
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, sen
tials, one for
the controls and one for the results, using
render :update
Tonypm
--
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
in_groups and in_groups_of
part of rails api - hadn't spotted those before and would never have
thought of looking for them.
I often wonder how many other useful little goodies I may be missing.
Always useful to keep an eye on this group.
thanks Marnen
--
You received this message because yo
There is also
validates_date_time plugin
http://agilewebdevelopment.com/plugins/validates_date_time
if you also want to allow entry in other formats
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this g
the console in one of the buffers is working well, and
switching between buffers to re run commands etc is now becoming much
more automatic. I just need to learn to resist the temptation to pick
up the mouse!
Tonypm
--
You received this message because you are subscribed to the Google Groups "
.
I have started using this sequence, it just seemed a bit odd to remove
something first to replace it twice but after a while you don't even
notice.
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to th
> I switch buffers using the arrow keys most of the time.
>
> Ctrl + x, and then left or right arrow.
Thanks that helps (I notice you can also left and right click on the
buffer name in the status bar)
Tonypm
--
You received this message because you are subscribed to the Google Gro
Ctrl + y to paste.
Thanks Greg that is perfect - somehow I had completely missed that. I
notice now that the tutorial describes C-w but does not mention M-w
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post
do give an overview of
what is possible.
I havn't yet found a quick way to duplicate a line or series of lines
eg alt+ctl+down arrow in netbeans - if anyone can enlighen me I would
be grateful.
Tonypm
--
You received this message because you are subscribed to the Google Groups "Ruby
Thanks - it may have only been a short time, but I was missing the
guides.
--
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
anyway. This does not happen with IE or firefox on
linux or mac.
But firefox seems to be ok with other web sites, so I still have to
suspect something with my setup, but don't really know what to look
for.
Tonypm
--
You received this message because you are subscribed to the Google G
don't mind
admitting to being dumb!
Thanks
Tonypm
--
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
r
of the model being searched
which makes building the search form really easy.
It may not be the best approach, but it works for me and I have done
my best to minimise and standardise the code in the controller.
I hope it may at least give you some ideas or provoke some other
responses.
Tonypm
--
Y
Hi,
I want to change a single table field to UTF-8, but cant see a way of
defining this in a migration. Does anyone know if there is a way, or
if it has to be an sql snippet, how would I add that?
Thanks
Tony
--
You received this message because you are subscribed to the Google Groups "Ruby
o
is it that :prompt needs a string ?
Tonypm
--
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
rubyonrails-tal
ers` ON
`line_items`.order_id = `orders`.id WHERE ((`orders`.batch_id = 1479))
So am I doing something bad with my named_scope??
Thanks for any help
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails:
Sorry should have said I access the forum via browser on
groups.google.com
Tonypm
--~--~-~--~~~---~--~~
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 rubyon
Whilst trying to find out why I was having problems running Webrat, I
put a puts into the routes file to see when it was loaded, and noticed
it gets loaded twice. Is there any problem with this.
It only happens with rake, not if running the test directly.
for a large routes folder, it would add
should ask Rachel
Tonypm
--~--~-~--~~~---~--~~
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, sen
ets or creates an entry in the search table for the model/
user.
@filter gets the fields from the current or new search by calling
@search.filter. I have arranged it so that it works using ajax,
updating only one search field at a time. @filter is used to display
the form in the view
@fi
e a resource into the admin
namespace. It simplifies the process since the paths don't need to be
edited. But then admin wont appear or be required in the url.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
get
started with rails, and just doing it is the best way, so start with a
book that will help you do that. Having said that, I do have a
selection of the books mentioned and they are indeed worthwhile. You
just have to decide which you need to get started.
hth
Tonypm
--~--~-~--~~--
steve
that's the first outline of erb I have seen. Either it doesn't get
discussed a lot, or it is discussed in places I don't visit. Anyway,
although I had a broad idea of what was going on under the bonnet, I
had never really seen a clear example of an erb template in action. I
use haml, and
going from 2.0.2 to 2.3 so had not seen
the dep error.
def assert_valid(record)
assert record.valid?, record.errors.full_messages.join("\n")
end
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups &
hi,
just upgrading to 2.3.2 and getting same, did you resolve this at all?
Tonypm
--~--~-~--~~~---~--~~
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 rubyon
Albert,
thank you so much for this info. I have posted this quation twice and
not received a response.
Tried it and it is the solution.
It has been irritating me for a while, but I just haven't had time to
investigate it.
Many thanks
T
i find I cant send to logger in production mode
if I am running a script/runner on a model method.
Works in development mode, must be a reason for this although I cant
figure it
Output just seems to go nowhere
Tonypm
--~--~-~--~~~---~--~~
You received this
must be missing some obvious point here.
Tonypm
--~--~-~--~~~---~--~~
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 unsubs
, but the change I made has worked ok for me with firefox
at least (it has to go in the redbox.js in the public folder).
You may want to look into the code in a bit more depth if you may be
supporting other browsers.
Tonypm
--~--~-~--~~~---~--~~
You received thi
hat the through is in
place at each level, but to no avail.
Perhaps someone may be able to enlighten us.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to thi
hi,
Ruby pocket reference looks useful, think I'll order a copy.
Regarding the class method, just wondering when/how this method should
get called.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups &quo
)
I wonder if there is a way to use the flagged_repair_notes in the
find for flagged repairs.
ps.
I have real admiration for the guys who do the ActiveRecord SQL
generation magic.
Thanks to all
Tonypm
--~--~-~--~~~---~--~~
You received this message because
search, where I am building a dynamic scope (thanks to
railscasts)
I can do:
scope.flagged_repairs.paginate(:page=>page, :per_page=>per_page)
And it all appears to work!!
Incredibly neat
Tonypm
--~--~-~--~~~---~--~~
You received this message because you
Peter,
> The dramatic
> improvement in ping time does make quite a difference to be honest,
Confirms what I was what I was wondering about.
Had a look at bytemark, they look worth following up.
Thanks
Tonypm
--~--~-~--~~~---~--~~
You received this m
ActiveRecord terms. Here is an example, I am guessing
this can be done without using find_by_sql
Repair has_many :notes
SELECT * FROM repairs
where exists
(select * from notes where repairs.id=notes.repair_id
and and notes.flagged)
Thanks
Tonypm
Some helpful comments here. Does anyone have any experience using
these from the UK.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, sen
I tend these days to always use the full descriptive words - memory
implications are small, but it is easier to directly display the value
than have code to expand it wherever it is used. It also tends to
make the code logic easier to follow.
tonypm
of 0=false,
1=true.
If you are checking the params value in the controller then you will
be looking to detect, blank?, '0' or '1'
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "R
Using Rails relies heavily on googling - so my vote would go for
naming it something pretty unique. I've done a lot of reading about
railway track engineering over the recent years.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subsc
How about RaiMer
--~--~-~--~~~---~--~~
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
rubyo
pdf file format. It is a bit fiddly to
use, but is not bad, once you have got your head round how to layout
various elements. The table format can be a bit limited. (A new pdf
creator called prawn is under development which).
Tonypm
--~--~-~--~~~---~--~~
You
re at
anytime.
Touch typing on the keyboard is possible and actually require less
finger movement which as you get used to is less RSI risk. Mostly
though I just plug in a usb kb and mouse.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscrib
using field observers instead. It seemed like the focus
iinternally in the form was in a virtual submit button. If I add a
normal text field, the problem goes away.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
er to include the tag in the partial
itself, so that the whole row, not just the inner html gets replaced.
In this case use page.replace :update_me in the controller.
4. You may find if you get rid of the form tags, that updating
individual s may work, but I would be wary of it.
hth T
ps.
Looking again at the code, I suspect the problem may be that you are
updating table cells. I think i have seen something similar with ff.
In general, I tend to always update a whole row.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are
mal example that still
demonstrates a problem, post it here and i will see if i can repeat
it.
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group,
Thanks Fred,
Fedora updated Ruby to:
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-linux]
problems now all gone away - much relieved!!
Tonypm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails:
, but had been getting comments from users about slow responses
for a little while.
I am monitoring the process memory size and watch it grow every few
requests.
If anyone can help that would be great.
Tonypm
--~--~-~--~~~---~--~~
You received this message because yo
78 matches
Mail list logo