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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/27b501d9-54fc-453a-bdcc-10542fd90253%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Oct 31, 2013, at 1:15 PM, N2obie wrote:
> A CMS could be developed using one or another of those MVC kits -- a CMS is a higher-level abstraction than MVC. So comparing them is a false choice.
>
> What you mean is that i should develop a CMS using MVC, so that adding content to my website would be easy and simple?
>
>
Maybe. What I am pointing out is that a CMS is a high-level abstraction, and depending on the type of site you are trying to build, it may be a perfect fit for your project. But it also comes with a bunch of features that only make sense if you are trying to build a content-managed site, like a blog or a news site. A lower-level toolkit, like Rails or Django or Symfony, can be used to build almost anything, because it doesn't make any assumptions about what you're trying to do with it. All it does is provide a meaningful level of "plumbing" to allow you to construct a data-driven site. It makes no guesses about what sort of site that would be. If all you need is a CMS, then you can use one and you won't have to build anything. But if what you need (and your initial post made it very clear that this is true) is quite a bit more than what a CMS can provide, then you may want to build from scratch. Using Rails or Django or Symfony means you would't have to REALLY build from scratch, writing your own database access code and template substitution system, for example.
To give you a real-world (metaphorical) example, if someone gave you a truck-load of bricks and portland cement, you could build just about anything with it. But if they gave you a truckload of 36-foot pre-stressed concrete beams, you would have difficulty making the same range of finished projects with it. The pieces are too big to make a fireplace.
Walter
> Em quinta-feira, 31 de outubro de 2013 10h12min47s UTC-2, Walter Lee Davis escreveu:
>
> On Oct 30, 2013, at 9:59 PM, N2obie wrote:
>
> > Hello,
> >
> > This is my first post here! I`m a computer engineering with almost no formation in web Development. What I do know, is software engineering/architecture, Java and C/C++. I also have had some foundation in XHTML/CSS.
> >
> > So, this said, a friend came to me asking to develop a Website similar to eBay/Amazon/etc., I know it`s a huge project, so i don't want to develop it with SQL, PHP, HTML. I want to use some Modern technology... I`ve read about a few of them:
> >
> >
> > MVC -> facilitates the development of website by handling all those "complicated" language (SQL, PHP, HTML) and it`s connection automatically by the use of some language:
> > • Java -> JSF
> > • Ruby -> RubyOnRails
> > • Python -> Django
> > CMS -> facilitates the development of website by templates; in other words, it has many templates of many kinds of websites and those templates can be customized.
> > • drupal
> > • joomla
> >
> > The project has six months to be developed, at least a first working prototype. In addition, there is going to be two or three programmers doing it in their free time.
> >
> > I do know some of the strengths and weakness of each MVC/CMS.... the CMS is faster to develop, but it`s less customizable... From what I`ve heard of my friends project, it`s not a common website, it`ll provide a lot more than eBay/etc. So I`m afraid of using CMS.
> >
> > Most of all, the project should be modular; in other words, it must be possible to add new tools to the website after its completion.
> >
> >
> > If anyone has something to add, suggest or ask, please feel free.
> >
> >
>
> A CMS could be developed using one or another of those MVC kits -- a CMS is a higher-level abstraction than MVC. So comparing them is a false choice.
>
> Unless the project fits neatly into the pattern of your CMS (f.e. Drupal is perfect if you are building a community-written book, or a magazine, or a corporate Web site with a contact form), then that's going to be the fastest way to the finish line. But the moment you stray from the fall line, you will be skiing in the trees, and often have to un-do the core premises of the CMS in order to build some bit of functionality that you really need.
>
> Walter
>
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5045067d-df76-40c1-b795-7341c69098a3%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/B14B7DB2-A842-4E82-A332-B60C8150E5C8%40wdstudio.com.
For more options, visit https://groups.google.com/groups/opt_out.
A CMS could be developed using one or another of those MVC kits -- a CMS is a higher-level abstraction than MVC. So comparing them is a false choice.
Em quinta-feira, 31 de outubro de 2013 10h12min47s UTC-2, Walter Lee Davis escreveu:
On Oct 30, 2013, at 9:59 PM, N2obie wrote:
> Hello,
>
> This is my first post here! I`m a computer engineering with almost no formation in web Development. What I do know, is software engineering/architecture, Java and C/C++. I also have had some foundation in XHTML/CSS.
>
> So, this said, a friend came to me asking to develop a Website similar to eBay/Amazon/etc., I know it`s a huge project, so i don't want to develop it with SQL, PHP, HTML. I want to use some Modern technology... I`ve read about a few of them:
>
>
> MVC -> facilitates the development of website by handling all those "complicated" language (SQL, PHP, HTML) and it`s connection automatically by the use of some language:
> • Java -> JSF
> • Ruby -> RubyOnRails
> • Python -> Django
> CMS -> facilitates the development of website by templates; in other words, it has many templates of many kinds of websites and those templates can be customized.
> • drupal
> • joomla
>
> The project has six months to be developed, at least a first working prototype. In addition, there is going to be two or three programmers doing it in their free time.
>
> I do know some of the strengths and weakness of each MVC/CMS.... the CMS is faster to develop, but it`s less customizable... From what I`ve heard of my friends project, it`s not a common website, it`ll provide a lot more than eBay/etc. So I`m afraid of using CMS.
>
> Most of all, the project should be modular; in other words, it must be possible to add new tools to the website after its completion.
>
>
> If anyone has something to add, suggest or ask, please feel free.
>
>
A CMS could be developed using one or another of those MVC kits -- a CMS is a higher-level abstraction than MVC. So comparing them is a false choice.
Unless the project fits neatly into the pattern of your CMS (f.e. Drupal is perfect if you are building a community-written book, or a magazine, or a corporate Web site with a contact form), then that's going to be the fastest way to the finish line. But the moment you stray from the fall line, you will be skiing in the trees, and often have to un-do the core premises of the CMS in order to build some bit of functionality that you really need.
Walter
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5045067d-df76-40c1-b795-7341c69098a3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
在 2013年10月30日星期三UTC+8上午7时37分57秒,Chris Clemens写道:
Hey Guys,A group of guys and myself have been working on a project/business plan to develop a Hotel Concierge application for tablets. We have been working on it for over a year and have hotels here in Chicago that are on board and very interested with our concept. We also are in the works with some large APIs as well as some contracts with some large APIs that want to work with us. Recently our developer had to drop out of the group because he became too busy with his other projects and we have been at a standstill for a couple of weeks. Can anyone provide me some direction on where to find start looking for another developer or if this sounds like an interesting venture and you would like more information please contact me at crcle...@gmail.com.I appreciate any help you can offer.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9cc15f3e-ea01-4f45-b399-1e811c4f8f9f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Oct 30, 2013 at 6:59 PM, N2obie <r.risk.leal@gmail.com> wrote:
> So, this said, a friend came to me asking to develop a Website similar to
> eBay/Amazon/etc.,
>> The project has six months to be developed, at least a first working
> prototype. In addition, there is going to be two or three programmers doing
> it in their free time.
Thanks, always nice to have some good laughs in the morning :-)
If nothing else, though, shouldn't you simply get the programmers
who'll be involved together to agree on a language/platform??
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAaN%3D-Uh6V74_%3DtvimzCGhmAhUii-W0Wb2c53Vee4a%3DcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Oct 30, 2013, at 9:59 PM, N2obie wrote:
> Hello,
>
> This is my first post here! I`m a computer engineering with almost no formation in web Development. What I do know, is software engineering/architecture, Java and C/C++. I also have had some foundation in XHTML/CSS.
>
> So, this said, a friend came to me asking to develop a Website similar to eBay/Amazon/etc., I know it`s a huge project, so i don't want to develop it with SQL, PHP, HTML. I want to use some Modern technology... I`ve read about a few of them:
>
>
> MVC -> facilitates the development of website by handling all those "complicated" language (SQL, PHP, HTML) and it`s connection automatically by the use of some language:
> • Java -> JSF
> • Ruby -> RubyOnRails
> • Python -> Django
> CMS -> facilitates the development of website by templates; in other words, it has many templates of many kinds of websites and those templates can be customized.
> • drupal
> • joomla
>
> The project has six months to be developed, at least a first working prototype. In addition, there is going to be two or three programmers doing it in their free time.
>
> I do know some of the strengths and weakness of each MVC/CMS.... the CMS is faster to develop, but it`s less customizable... From what I`ve heard of my friends project, it`s not a common website, it`ll provide a lot more than eBay/etc. So I`m afraid of using CMS.
>
> Most of all, the project should be modular; in other words, it must be possible to add new tools to the website after its completion.
>
>
> If anyone has something to add, suggest or ask, please feel free.
>
>
A CMS could be developed using one or another of those MVC kits -- a CMS is a higher-level abstraction than MVC. So comparing them is a false choice.
Unless the project fits neatly into the pattern of your CMS (f.e. Drupal is perfect if you are building a community-written book, or a magazine, or a corporate Web site with a contact form), then that's going to be the fastest way to the finish line. But the moment you stray from the fall line, you will be skiing in the trees, and often have to un-do the core premises of the CMS in order to build some bit of functionality that you really need.
Walter
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/FEDA89EF-3B87-4D3E-B455-AF0495EAB05F%40wdstudio.com.
For more options, visit https://groups.google.com/groups/opt_out.
среда, 30 октября 2013 г., 17:22:54 UTC+4 пользователь Frederick Cheung написал:
On Wednesday, October 30, 2013 6:19:35 AM UTC, Павел Макаров wrote:Hello. Would somebody like to answer me on question or give some advice?
In my situation I have to use EAV-model (MySQL database) to deal with dynamic attributes (for products: color, weight, height and etc.)
Model: Product, Option, Value
So, in this case I have relation: product has many options through values.
It's okay, when I modify and print it.
But what is the best solution for search on them?Do you have to use Mysql for the search side too? Something like elasticsearch is good at searching over that sort of dataset.FredBecause I have to have many inner joins with the same table - values
And each join should have own conditions, for example:option_alias1.name = 'color' AND values_alias1.value = '100'
AND option_alias2.name = 'weight' AND values_alias2.value < '200'
So, I can't do it by join existing relation many times, because I haven't got access to aliases. Should I write raw sql queries or there is more convenient way?
Thank you.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7c318e17-fae6-45b0-8f8e-09cad307fcf2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks Robert Walker for response. Well send_sms is the form name only but fckeditor is expecting only models. It is not considering any of the name like
There is a model like student fckeditor works fine with below line
<%= fckeditor_textarea :student, :message,:lang => I18n.locale,:langdir => (rtl? ? 'rtl' : 'ltr') %>
as there is student model and there is no send_sms model I have issue in view but in spite of give the model name to fckeditor in controller which what that value or the text from fckeditor in this way params[:student][:message] I do not get any value in controller. This is what I am facing it.
There is another text box
<%= text_field :send_sms,:subject,:placeholder => 'Subject'%>and when I access params[:send_sms][:subject] I get my params here but not with fckeditor as it expects model name first in place of send_sms but after giving the any model name I can not access my params.
On Wed, Oct 30, 2013 at 6:31 PM, Robert Walker <lists@ruby-forum.com> wrote:
keerthi priya wrote in post #1126074:
> Hi allIn your code :send_sms is not the form name. It is the name of the model
>
> I am trying to use Fckeditor as text area to send mails.here is my code
> <% remote_form_for :send_sms,
> :before => "Element.show('loader')",
> :success => "Element.hide('loader')" do |sms| %>
> <div id="news_content_text_field_bg">
> <%= fckeditor_textarea :send_sms, :message,:lang => I18n.locale,:langdir
> =>
> (rtl? ? 'rtl' : 'ltr') %></div>
> <%= submit_tag "#{t('send_sms')}",:class=>'submit_button' %>
>
> <% end %>
>
> But here as the form name is send_sms I used the same name for fckeditor
that remote_form_for expect to interact with.
You getting this error because there is no model object class named
> I
> am unable to send params to my controller.I got the error like
>
> uninitialized constant SendSms.
SendSms.The Rails documentation can help you. I have linked to the Rails 4
> Can someone help me what is going wrong.
documentation describing form_for. Rails 4 removed remote_form_for and
instead added the remote functionality to form_for as you can see later
in the docs:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_for
--
Posted via http://www.ruby-forum.com/.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/04c6c7e56043a236852af1688f4d0a63%40ruby-forum.com.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAMJk0n4x4bk2Qm1s0%2B4tH%2BA_UGAOXMHQTxWyA7F6%3Dsf_FUtX6A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
i am using google maps for my project in rails 4, ruby 2, and
gmaps4rails '1.5.6' but the problem is i am not getting marker at center
of the map as well as the zoom in zoom out side bar is also not coming.
If any one have any idea about this problem please reply?
Model Action
acts_as_gmappable
def gmaps4rails_address
html = full_address(city_id,state_id,country_id)
self.location = (location + html)
location
end
def full_address(city_id,state_id,country_id)
city_name = MdmCity.get_city_name(city_id)
state_name = MdmState.get_state_name(state_id)
country_name = MdmCountry.get_country_name(country_id)
html = "#{city_name} #{state_name} #{country_name}"
html
end
Controller Action
def edit_content
@location_json = SeoContent.where(:id =>
params[:id]).first.to_gmaps4rails
end
VIEW
<%= gmaps4rails(@location_json) %>
Issues for me.
1) Zoom In and Zoom out bar is not coming.
2) Marker is not coming at center.
3) How to give Info window.
4) How to raise that address is Invalid, which is not present on google
map (Eg:kdjfkdfhdkfhd)
5) Why this action (def gmaps4rails_address) is calling automatically.
6) I want to call def gmaps4rails_address from update action too how ?
7) Map is coming only one forth ?why
8) Can i show directions on map ?
Thanks
Attachments:
http://www.ruby-forum.com/attachment/8878/gmap.png
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/43f91518a7282838c0e07c9f6003d04f%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hello,
This is my first post here! I`m a computer engineering with almost no formation in web Development. What I do know, is software engineering/architecture, Java and C/C++. I also have had some foundation in XHTML/CSS.
So, this said, a friend came to me asking to develop a Website similar to eBay/Amazon/etc., I know it`s a huge project, so i don't want to develop it with SQL, PHP, HTML. I want to use some Modern technology... I`ve read about a few of them:
MVC -> facilitates the development of website by handling all those "complicated" language (SQL, PHP, HTML) and it`s connection automatically by the use of some language:
- Java -> JSF
- Ruby -> RubyOnRails
- Python -> Django
CMS -> facilitates the development of website by templates; in other words, it has many templates of many kinds of websites and those templates can be customized.
- drupal
- joomla
I do know some of the strengths and weakness of each MVC/CMS.... the CMS is faster to develop, but it`s less customizable... From what I`ve heard of my friends project, it`s not a common website, it`ll provide a lot more than eBay/etc. So I`m afraid of using CMS.
Most of all, the project should be modular; in other words, it must be possible to add new tools to the website after its completion.
If anyone has something to add, suggest or ask, please feel free.
Thanks in advance.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/81c350d6-60e8-40dd-97f6-1565111f67bd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
newbie disclaimer - i have yet to even start using RoR.......
hello all - i am getting ready to start looking into RoR and was
wondering about how various (and many) jScript frameworks might tie into
RoR.
particularly, i was interested in google-AngularJS, probably because i
notice that google has thrown its mighty weight behind it.
i also saw there was a coffeescript, backbone.js, and a couple dozen
others.
is there one jScript framework that plays best with RoR? is using two
different frameworks counterproductive ?
being the idiot newbie that i am, i am surprised that RoR has not
partnered up with a jScript framework!
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7782a706856a679887ec062828b7b586%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
definedTable: ERROR: relation "comments" does not exist
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/91800a62-776a-4f79-a852-4ac7e483ed5e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
In my View I have a list of items in database. By the side of each item
in there is "delete" link.
There is also an AJAX form which allows to create new items. New items
are appended to list by JS.
When submit button is pressed, controller should send back JSON. The
problem is - how to send that "delete" link as a JSON? Since link's html
has some double quotes in it, I dont get valid JSON and my JS crashes.
destroy_link = view_context.link_to('Delete', created, method: :delete,
remote: true, :class => 'minus' )
json = {'plural' =>
created.class.name.pluralize.underscore.downcase,
'singular' => created.class.name.underscore.downcase,
'created' => created
}.to_json
Since I dont know a lot about ajax, propably something is terribly wrong
here?
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1f5392670dc6a6dc9fea44d51b0f3010%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAC9YFzed53e%3D-GDcRpEdZWOW3OvD4QWxHuMsmKOL7OT5a%3DR4Lw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4fc375ee-723a-4c0a-89e7-4dd682904fff%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<%= fckeditor_textarea :student, :message,:lang => I18n.locale,:langdir => (rtl? ? 'rtl' : 'ltr') %>
<%= text_field :send_sms,:subject,:placeholder => 'Subject'%>
keerthi priya wrote in post #1126074:
> Hi allIn your code :send_sms is not the form name. It is the name of the model
>
> I am trying to use Fckeditor as text area to send mails.here is my code
> <% remote_form_for :send_sms,
> :before => "Element.show('loader')",
> :success => "Element.hide('loader')" do |sms| %>
> <div id="news_content_text_field_bg">
> <%= fckeditor_textarea :send_sms, :message,:lang => I18n.locale,:langdir
> =>
> (rtl? ? 'rtl' : 'ltr') %></div>
> <%= submit_tag "#{t('send_sms')}",:class=>'submit_button' %>
>
> <% end %>
>
> But here as the form name is send_sms I used the same name for fckeditor
that remote_form_for expect to interact with.
You getting this error because there is no model object class named
> I
> am unable to send params to my controller.I got the error like
>
> uninitialized constant SendSms.
SendSms.The Rails documentation can help you. I have linked to the Rails 4
> Can someone help me what is going wrong.
documentation describing form_for. Rails 4 removed remote_form_for and
instead added the remote functionality to form_for as you can see later
in the docs:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_for
--
Posted via http://www.ruby-forum.com/.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/04c6c7e56043a236852af1688f4d0a63%40ruby-forum.com.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAMJk0n4VR7_YcP64YA%2B00i1w7AXQqjQYUSaCGVm2Owd-wvbpEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALxYQy5PMVdF8iZ0%2B7LTN6b0ivPuGbFqauWN06fwKnfMta0cAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Oct 29, 2013, at 6:37 PM, Chris Clemens <crclemens73@gmail.com> wrote:
> Hey Guys,
>
> A group of guys and myself have been working on a project/business plan to develop a Hotel Concierge application for tablets. We have been working on it for over a year and have hotels here in Chicago that are on board and very interested with our concept. We also are in the works with some large APIs as well as some contracts with some large APIs that want to work with us. Recently our developer had to drop out of the group because he became too busy with his other projects and we have been at a standstill for a couple of weeks. Can anyone provide me some direction on where to find start looking for another developer or if this sounds like an interesting venture and you would like more information please contact me at crclemens73@gmail.com.
>
> I appreciate any help you can offer.
Doing what you're doing here is good. Look also in the Rails group on LinkedIn. Look around your area for Ruby/Rails users groups. (There's a couple here in Minneapolis, RUM, and Rails MN.)
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/BA299F81-1D64-4525-B1E3-2C6A8289C230%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
On 30 October 2013 11:04, Peter Hickman <peterhickman386@googlemail.com> wrote:
> I have a 3.1.1. app that is running in production and has been for several
> weeks now. I just added a new page and controller with an entry in routes.rb
>
> In development everything is just fine. But when I deploy the change to
> production I get a problem with the routes. Everything else is just fine.
>
> Started GET "/fix_scores_mappings" for 82.152.150.75 at 2013-10-30 10:12:54
> +0000
>
> ActionController::RoutingError (uninitialized constant
> FixScoresMappingController):
>
> The FixScoresMappingController exists and the output from rake routes is
> identical so I am at a loss as to what is going on.
>
> The only other thing that might be important (but given that everything
> works in development I am unconvinced) is that FixScoresMappingController
> was originally called FixSupplierMappingController and was manually renamed.
It is not a routing error, it cannot find the controller. Are you
sure you renamed the controller file and the class correctly? Have
you restarted the server?
Colin
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuK_NsdiaHPsC%2BGZpU2mytZ7xKeMii%3D0s9-yOWxofkJPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a477288f-9341-44a7-95bb-6cb065755d36%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Wednesday, October 30, 2013 6:19:35 AM UTC, Павел Макаров wrote:
Hello. Would somebody like to answer me on question or give some advice?
In my situation I have to use EAV-model (MySQL database) to deal with dynamic attributes (for products: color, weight, height and etc.)
Model: Product, Option, Value
So, in this case I have relation: product has many options through values.
It's okay, when I modify and print it.
But what is the best solution for search on them?
Because I have to have many inner joins with the same table - values
And each join should have own conditions, for example:option_alias1.name = 'color' AND values_alias1.value = '100'
AND option_alias2.name = 'weight' AND values_alias2.value < '200'
So, I can't do it by join existing relation many times, because I haven't got access to aliases. Should I write raw sql queries or there is more convenient way?
Thank you.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bfc14c3c-9451-436a-a96b-bb8c9c1a08af%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
keerthi priya wrote in post #1126074:
> Hi all
>
> I am trying to use Fckeditor as text area to send mails.here is my code
> <% remote_form_for :send_sms,
> :before => "Element.show('loader')",
> :success => "Element.hide('loader')" do |sms| %>
> <div id="news_content_text_field_bg">
> <%= fckeditor_textarea :send_sms, :message,:lang => I18n.locale,:langdir
> =>
> (rtl? ? 'rtl' : 'ltr') %></div>
> <%= submit_tag "#{t('send_sms')}",:class=>'submit_button' %>
>
> <% end %>
>
> But here as the form name is send_sms I used the same name for fckeditor
In your code :send_sms is not the form name. It is the name of the model
that remote_form_for expect to interact with.
> I
> am unable to send params to my controller.I got the error like
>
> uninitialized constant SendSms.
You getting this error because there is no model object class named
SendSms.
> Can someone help me what is going wrong.
The Rails documentation can help you. I have linked to the Rails 4
documentation describing form_for. Rails 4 removed remote_form_for and
instead added the remote functionality to form_for as you can see later
in the docs:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_for
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/04c6c7e56043a236852af1688f4d0a63%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALxYQy6k6OWRZznCdU6RZdr1hU%3D2EZSwOJr8gfoVuoe4kHaYAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
I am trying to use Fckeditor as text area to send mails.here is my code
<% remote_form_for :send_sms,
:before => "Element.show('loader')",
:success => "Element.hide('loader')" do |sms| %>
<div id="news_content_text_field_bg">
<%= fckeditor_textarea :send_sms, :message,:lang => I18n.locale,:langdir => (rtl? ? 'rtl' : 'ltr') %></div>
<%= submit_tag "#{t('send_sms')}",:class=>'submit_button' %>
<% end %>
But here as the form name is send_sms I used the same name for fckeditor I am unable to send params to my controller.I got the error like
uninitialized constant SendSms.
Can someone help me what is going wrong.
Thanks in advance
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7282f636-1b13-4360-84a0-73aadf094003%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e0e8a7be-5f0b-4847-9bd1-9d7d232b4f35%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks a lot!
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9ec245b26f8c8255d200ed261c81e3c6%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Oct 28, 2013, at 11:44 PM, Will Amette <jeff.j.stringer@gmail.com> wrote:
> Hi there - I'm a ruby newbie and am stuck on the Getting Started with Rails app. See output below. Problem arose when I ran the rake db:migrate command. I also tried the 'rake db:migrate RAILS_ENV=development' command which may be obvious. Any ideas on how to fix this?
Did the db:migrate operation complete successfully? Verify using the command line tool appropriate for the database manager you're using. What step are you at in the Getting Started Guide?
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/558AFDF7-02EA-4774-958C-D881F1E7C36B%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
In my situation I have to use EAV-model (MySQL database) to deal with dynamic attributes (for products: color, weight, height and etc.)
Model: Product, Option, Value
So, in this case I have relation: product has many options through values.
It's okay, when I modify and print it.
But what is the best solution for search on them?
Because I have to have many inner joins with the same table - values
And each join should have own conditions, for example:
option_alias1.name = 'color' AND values_alias1.value = '100'
AND option_alias2.name = 'weight' AND values_alias2.value < '200'
So, I can't do it by join existing relation many times, because I haven't got access to aliases. Should I write raw sql queries or there is more convenient way?
Thank you.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8a1cfc22-41dc-4608-b945-0fb8d73ba268%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Mon, Oct 28, 2013 at 9:44 PM, Will Amette <jeff.j.stringer@gmail.com> wrote:Fix what?
> Hi there - I'm a ruby newbie and am stuck on the Getting Started with Rails
> app. See output below. Problem arose when I ran the rake db:migrate
> command. I also tried the 'rake db:migrate RAILS_ENV=development' command
> which may be obvious. Any ideas on how to fix this?
So you stop the server, run the migration(s) -- and then what?
> ActiveRecord::PendingMigrationError (Migrations are pending; run 'rake
> db:migrate RAILS_ENV=development' to resolve this issue.):
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVu4sgeYNE7ntmezsQD2Qsv4tCKJGck5vm4PtFJbvn%2BA%40mail.gmail.com.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CABukFWCkwkduniB5ADm0Vst2Jx_XGVM%3Dtb2FBF%3Dd3jkVJnxJ8w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b08e5105-174f-47bc-be35-b7c6770eef9b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Mon, Oct 28, 2013 at 9:44 PM, Will Amette <jeff.j.stringer@gmail.com> wrote:
> Hi there - I'm a ruby newbie and am stuck on the Getting Started with Rails
> app. See output below. Problem arose when I ran the rake db:migrate
> command. I also tried the 'rake db:migrate RAILS_ENV=development' command
> which may be obvious. Any ideas on how to fix this?
Fix what?
> ActiveRecord::PendingMigrationError (Migrations are pending; run 'rake
> db:migrate RAILS_ENV=development' to resolve this issue.):
So you stop the server, run the migration(s) -- and then what?
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVu4sgeYNE7ntmezsQD2Qsv4tCKJGck5vm4PtFJbvn%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9c747c00-1f51-4b9f-99ed-8b0decdf8bc8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e5cdb5b6-4ca4-4f82-b783-45eac9e757b0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi
Please advice i have ACR38 and a mcr200and i would like to know how to
read and write an Emv ic chip card.
i need help with this regard, im willing to pay a price.
Thanks
Sops
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e6697ba30b685efc626416c2c732f1c5%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
Jordon,
On 2013-10-28 23:41, Jordon Bedwell wrote:
> Apparently my laptops touchpad was on so let me reword it:
>
> In Ruby a blank string is not a null bit so if you set :default => ""
> it will allow blank strings, which is what you consider a null string
> even though there is no such thing. Which means if you want :default
> => "" you need to have your model validate with :allow_blank => false,
> or you need to ALLOW_NULL 0 and remove the :default => "".
>
> The preferable solution from both a security and proper application
> standpoint is to tell both the model and the db that it doesn't want
> null or blank strings because it's faster to have the model do blank?
> than it is to hit the db and have it return and error and complete a
> cycle (short-circuiting is a good thing.) The db protection is simply
> to protect yourself against manual entries and edge cases in the
> application.
Right - I should have realised that what I was looking at was the DB
stuff - I have found:
.gem/ruby/bundler/gems/devise-4e2cdc2d5b81/lib/devise/models/validatable.rb
and it seems to have some stuff in it that is relevant - I will check
that out.
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil@pricom.com.au.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c8799ae41bc6d9e88501751edec7ed43%40localhost.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,
could you be more specific?
Anyway, you should read the docs first:
http://www.ruby-doc.org/core-2.0.0/Time.html#method-c-at
Balo
On Tue, Oct 29, 2013 at 9:53 AM, Daynthan Kabilan <dayanthan86@gmail.com> wrote:
> Hi friends,
>
> now i upgrade my ruby version 2.0.0. How can use Time.at In ruby 2.0.0.
>
> Thanks for advance.
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CADKeJyT9VrLCa9DDJaLjCu9nXxbo9KuMtxjfL0Z%2BxDCoKPFV9g%40mail.gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAF9Nz7yBbWoFU%2BXBmVt8eDwWUmu7V6JQJhz9kpHmXFOw8SDYNw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADKeJyT9VrLCa9DDJaLjCu9nXxbo9KuMtxjfL0Z%2BxDCoKPFV9g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Suppose you have a controller HomeController
. It should look like below.
home_controller.rb
class HomeController < ApplicationController # GET /show_message def show_message format.js { render js: "alert('simple output');" } end end
and in your routs.rb
file add this line
get '/show_message', 'home#show_message', as: :show_message
and in your view add this line
<%= link_to "Print", show_message_path, remote: true %>
After this when you click on Print
link, and AJAX request will be sent to HomeController'sshow_message
action and it will display a javascript alert.
For better understanding of AJAX requests in Rails, follow this tutorial - http://www.tutorialspoint.com/ruby-on-rails/rails-and-ajax.htm :)
On Monday, October 28, 2013 7:52:06 PM UTC+5, Ruby-Forum.com User wrote:
Kashif Umair Liaqat wrote in post #1125837:
> You cannot call Ruby code directly from client side. You have to send an
> AJAX request to some controller for this purpose.
How would I do that? I have no knowledge of AJAX
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/109ac5c3-c5b7-452d-bdd0-461047aa960a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.