maybe I should not use a minified js file in the pipeline. I switched to a
non minified version .. so far no errors but sometimes it's been
intermittent
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and
I have this js file decimal.min.js which I put in the asset pipeline
javascript directory. Whether I require it in the application.js manifest
or not, I still get the error below. This is on windows in development mode
.. Any ideas or suggestions ? I find it slightly baffling .. The js file
it
I think rails is great, but it's probably more complicated than PHP .. I
think Rails is also perhaps better as far as back end development. If alot
of what you do is mostly front end, I am not sure if you would get that far
into the rails stack.
Since Rails is more complex, if you learn some
I am using capybara minitest on windows using selenium driver .. webkit
driver would require me to install QT so I am avoiding that
I am trying to simulate things like http error on an ajax request. I have
this test in my feature as shown below.
I have a library that I include in my real cont
I have been doing alot of contract work lately. I feel like I want to play
with some of these one liners as at interviews I sometimes get asked such
things but also I want to be flexible to the coding standards of any
company I may work at.
--
You received this message because you are subsc
instead of this:
def rqstate
self.quote_request.status rescue "unsubmitted"
end
I'm going for this, though maybe there is a good one liner I overlooked ?
def rqstate
ret_res = "unsubmitted"
ret_res = quote_request.status || ret_res if quote_request
ret_res
end
--
You received
I know you can define actions as a block inside of rescue but that wasn't
what I meant
--
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+u
rqstate is as follows, if there is not a quote request or the status field
is null then we could assume
that the request was never submitted to the backend api. This was actually
the first time I tried this approach but I am not sure I will keep it this
way
def rqstate
self.quote_request.st
I was reading some ruby one liners. The rescue style seems to make it easy
to write short pieces of code, but it feels like I am forcing an error and
then just ignoring it in some cases. I guess I am an older programmer and
was never encouraged to write this sort of code, but do most people fee
# I was just at a job interview and was asked to write a function that did
a frequency of various words from a string.
# I wrote something out on the board similar to my freq() method below.
When I got home I coded this example up as
# an exercise
#
# I was then asked how could I improve the eff
We recently looked at mongoDB a bit. I was discussing using mongoDB with
active record but was told that maybe there are other or better options.
Can someone comment on that ?
Also, someone suggested storing a ruby array directly inside of a record
where I would have opted for the array to
I am trying to run cucumber/webrat with Sinatra on Jruby 1.7.3 (1.9.3) on
Windows.
It seems to work ok, but when I try to add selenium to webrat. I get the
error shown below.
It seems like it thinks it is in a linux environment or something as the
error happens when it tries to start selenium s
I recall I did a small project a couple of years ago with websockets/faye
plugin. It was a little complex, but I was wondering if many people use
websockets in stead of what seems like the more typical ajax polling and is
it very easy to implement in sinatra ?
--
You received this message b
Can someone explain what the "*" operator inside the hash is doing here or
what that notation is referred to in this context ? thanks
irb(main):006:0* mail_config
=> {"server_setings"=>{"address"=>"smpt-int.ex1.com", "port"=>25}}
irb(main):019:0> Hash[*mail_config['server_setings'].m
Your post has been very helpful, I tried something like what you
posted, but it didn't
quite make sense to me.
If you look at what I have currently below, I have to have this
sleep(30) at the bottom which is not optimal.
a join on the thread doesn't work.
I also tried run_block() instead of run
I found this example of using faye for a chatroom type app as I am
trying to get a feel for push servers:
http://net.tutsplus.com/tutorials/ruby/how-to-use-faye-as-a-real-time-push-server-in-rails/
I got some of that to work, although multiuser from the same browser
doesn't exactly make sense.
I
Thanks for the ideas ..
some of my records are very flexible with joins,such that I can't be
sure how may fields their are in the form or what field types there
are.
I figured I could guess that I wouldn't have more than 100 fields and
I could generally have an idea how many fields there was
Here is what my schema and models look like currently and the error I
get is below ..
create_table "attributes", :force => true do |t|
t.string "field_name"
t.integer "reliability"
t.integer "attribute_record_id"
t.string "attribute_record_type"
end
create_table "parsed_s
I tried the ruby aws gem. If I can get a key and secret key from
amazon, I would assume my account is valid ? - unless it has not
refreshed through the system.
I get the error below.
I assume the "+' and "/i" at the beggining and end of the secret key
are part of the key ?
If I can use this ge
What about the database ? How does amazon s3 fit into the picture ?
--
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
r
So I had done some things in the past with map.resources in the
routes, but I never really fully understood all of it, especially when
there was more than one level with children such as:
map.resources :bookmarks, :has_many => [:comments]
I had kind of rushed through some examples and I sho
Thanks,
I have been through that wikipedia dry and theoretical stuff a bit
before. Some of it is useful, but I can't always seem to draw out what
are the main points that I should care the most about and what is
assumed such as client/server is obviously an assumption, but if I
don't give a full
I sometimes get asked about what is REST in an interview. I feel like
I have a sense of what it is, yet the answer seems somewhat
theoretical. When I built a website that supported sub domains for
rock bands, I felt I got some sense of what it was, yet I was not sure
exactly how to define it in
hey, thanks
On May 20, 11:57 am, Frederick Cheung
wrote:
> On May 20, 4:13 pm, "wbsurf...@yahoo.com" wrote:
>
> > If there was a way to limit parts of a ruby stack trace to just my
> > code rather than the whole rails library and gems that would be an
> > i
If there was a way to limit parts of a ruby stack trace to just my
code rather than the whole rails library and gems that would be an
interesting feature ..
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send ema
I basically have a job manager that runs with script/runner and is
independent of the webserver. It allows DRB connections, TCP
connections,
and has a scheduling loop. Inside the scheduling loop is where the
error sometimes happens which doesn't seem related to anything I did.
I haven't worked
I basically have a job manager that runs with script/runner and is
independent of the webserver. It allows DRB connections, TCP
connections,
and has a scheduling loop. Inside the scheduling loop is where the
error sometimes happens which doesn't seem related to anything I did.
I haven't worked
I am wondering if there is an easy way to render layouts and views
from the plugin directory, as well as javascript and css ?
I know I could have a rake task copy them from the plugins to where
they would normally go, but they may change from time to time within
the application and then need t
I am migrating to rails 2.3.2
What I found confusing is that in some cases when I have a template
named:
"something.html.erb" it is looking for "something.erb", but in other
cases "something.html.erb" works fine.
I looked at a couple of cases and did not see any obvious reason why
that seemed
I have a worker my_tree worker as shown in my backgroundrb.yml file
below.
I played around with the trigger_args setting which I had it calling
update_main_tree() every 1 minute.
This opens a tree structure in my db that I set and rebuilds it. After
it seemed to be working ok, I then
set the tree
Using SQL or activerecord I am not sure how to search all fields for a
specific value ?
I know how to do this by just writing ruby code. To do it in SQL or an
activerecord find w/condition,
I don't know how. I actually am supposed to combine an find w/
condition and a search all fields for a
value
Hello,
I am looking for recommendations on a plugin or javascript lib that
support building an explorer type tree view. I am somewhat afraid that
the more extensive things available are fairly complex, and we want to
use something free ..
I am using acts_as_tree and creating entries from fil
I'm using jrails and I found when I use the authenticity_token in
certain javascript calls, that the
url works differently in that the paramters in the :with clause get
dropped if they are in a json type syntax.
Below is an example of a remote_function() call from JS that used to
work fine without
I just changed my session store to use active record because it
appears session expiration and so on may be easier that way and it
seems like a better option.
In my base controller I have:
protect_from_forgery :secret => 'hgfjh...kjhghglh' (whatever)
self.allow_forgery_protection = false
I am curious how stuff like params and flash work in the controller ?
Typically an instance variable is something like
@params, or maybe self.params. How does rails make params appear as if
it's an instance variable ?
--~--~-~--~~~---~--~~
You received this messag
If I do observe_form as below, the ajax call never occurs, but If I
remove the table it works fine.
This is just a test to troubleshoot as I had narrowed down my problem
to this, I actually wanted a form per row of the table:
<% form_tag({:controller => 'sheet_entry', :action =>
'pass_input'
I have a DRb process on another machine that communicates with the
server. It seems like if I do a find() where I specify a :condition
through Act-res it will take very long time and most finds of this
sort seem like they may send over all of the records in XML.
What I ended up doing for know is
stuff,
it was a bit more complicated ...
On Dec 31, 5:40 pm, "wbsurf...@yahoo.com" wrote:
> Here's some other thoughts I had on macs after looking at this page
> and browsing around some sections on the
> bottom:http://developer.apple.com/macosx/architecture/index.ht
otentially help me build my resume up a
bit and be interesting ..
I looked at the MAC laptop that has 2 gig of memory for a round $1300
that looked interesting ..
On Dec 27, 2:54 pm, Conrad Taylor wrote:
> Sent from my iPhone
>
> On Dec 27, 2008, at 10:04 AM, "wbsurf...@yahoo.com&q
> ? I'm not sure what you mean: VMWare just runs as an application
> under MacOS. You install other operating systems under it. So, for
> instance, I'm using all my Mac apps plus I have a window open with
> an OpenSolaris desktop and apps, or Ubuntu, or Windows.
>
I guess people also use VMWare
>
> > I know it was mentioned textmate IDE for rails ...
>
> I wish that you don't purchase a Mac to only use Textmate. You should
> have bigger goals for investing in a Mac or at least using it more
> than to run Textmate. In short, you should evaluate your goals as
> well as your budget constr
27, 1:57 pm, "Hassan Schroeder"
wrote:
> On Sat, Dec 27, 2008 at 10:04 AM, wbsurf...@yahoo.com
>
> wrote:
>
> > Hey, that's really interesting. I found dell laptops with ubuntu
> > starting at
> > $500.http://www.dell.com/content/topics/segtopic.aspx/linu
ware involve more steps
and complexity on ubuntu ?
anyway, that's a good price, what advantages do you think a mac has ?
I know it was mentioned textmate IDE for rails ...
On Dec 27, 12:26 pm, "Hassan Schroeder"
wrote:
> On Sat, Dec 27, 2008 at 9:10 AM, wbsurf...@yahoo.co
d select, which laptop I would need etc,
On Dec 27, 11:40 am, "Hassan Schroeder"
wrote:
> On Sat, Dec 27, 2008 at 8:10 AM, wbsurf...@yahoo.com
>
> wrote:
> > Does having VMWare as an additional layer create any inefficiencies or
> > problems ?
>
> No, i
lso, mouse
functionality on macs is allegedly less convenient, maybe there is no
right click ?
On Dec 27, 12:39 am, "Conrad Taylor" wrote:
> On Fri, Dec 26, 2008 at 8:20 PM, wbsurf...@yahoo.com
> wrote:
>
>
>
> > Thanks for the advice,
>
> > Can a mac read
Thanks for the advice,
Can a mac read an external USB drive that came from a Windows XP
machine ?
The mac sounds interesting. I like the idea of being able to pop open
a native shell to the system and do 'ps -ef' and see what is running
and be able to write a ruby script that does a fork() th
I am thinking of getting a new laptop. I noticed the cheapest mac was
about $1000, whereas I can get a cheap HP for about $550. The cheaper
machine is kind of appealing, but the idea of a linux type system for
a mac appeals to me however. I've always liked working on unix/linux
at various compan
47 matches
Mail list logo