I've tried Angular and Ember both. For some reason I haven't had much luck with
learning them. I picked up React recently and I really like it. And it
integrates nicely with my Rails apps.
Sent from my iPhone
> On Jul 31, 2015, at 9:39 PM, Victor H. Goff III
> wrote:
>
> So are you saying t
Thiago Cifani wrote in post #1177106:
> You can have 2 controllers to input data, the basic pages can represent
> actions in a site controller and post can be another one just as session
> controller. Any representation of storage data must be related a some
> model on rails, you will need to have
You can have 2 controllers to input data, the basic pages can represent actions
in a site controller and post can be another one just as session controller.
Any representation of storage data must be related a some model on rails, you
will need to have user, post and other database related recor
Hi all, I am very new to the rails framework and also web programming in
general. I am currently planning to work on a personal brochure site
which has a simple blogging feature. It is going to be very light so I
did not want to use any blogging engines. What I want is the followings:
1. Three pag
On Jul 31, 2015, at 8:39 PM, Victor H. Goff III
wrote:
>
> So are you saying these three top choices for more than a single page app, but
> question if Rails is appropropriate for a single page application (SPA)?
>
> I am curious why you brought a specific group of application style into
> the
So are you saying these three top choices for more than a single page app, but
question if Rails is appropropriate for a single page application (SPA)?
I am curious why you brought a specific group of application style into
the discussion. How would you change up your recommendation for a
multipl
On Jul 31, 2015, at 2:46 PM, Taras Matsyk wrote:
>
> Personally I found Angular good enough to work with and I ended up in a
> mess with Ember (Ember CLI) which some people claimed to be the most
> elegant solution for rich client side rails app.
Ember is richer and more full-featured, but is la
Hi everyone,
Just want to know your opinion on what JS framework better suites rails
world in 2015. Which one would you prefer and what advantages and
disadvantages it has?
Personally I found Angular good enough to work with and I ended up in a
mess with Ember (Ember CLI) which some people claime
Colin Law wrote in post #1176976:
> On 29 July 2015 at 19:23, Taras Matsyk wrote:
>> Thanks, I though that logically forms should not be used to display a
>> list of tens items with different properties.
>>
>> Will follow your advice, @Colin
>
> Glad to be of help, there is no reason why you shoul
Você sabe Ruby mesmo?
https://www.youtube.com/watch?v=XAYNW8AqDi0&feature=youtu.be&list=PLY-UKjSM58C_CMCaTJcwkkHwUEJQr-JmP
Entre em contato pelo e-mail: ge...@wewaant.com
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscrib
No user table does not contail foreign key user_one infact message table
contain user_one when I am using this has_many :messages,class_name:
"Message",
foreign_key: "user_one" I in user model I
ma getting the error what should I do to get the exact result help
What strikes me immediately is the question, does your User table contain
the foreign key "user_one"? Otherwise, can I offer some advise? Try to
calm down. The process in Rails development isn't always easy, sometimes
it is down-right difficult. In my experience here, folks are genuinely
i
I have found the solution to this:
<%= f.label :start_time %>
<%= time_select("opening_hour", "start_time", :ignore_date => true) %>
Thats all I need to do to include the time select options in the form and I
didn't need to do anything special in the controller to make this work as
time_select
I am adding the user model and message model have a look and if it is not
enough let me know .
https://gist.github.com/nwoow/62f45077f340eb8ffe0b
On Friday, July 31, 2015 at 11:53:50 PM UTC+5:30, Elizabeth McGurty wrote:
>
> I would add that we also need to see the Message and User Models, eg,
I am adding the user model and message model have a look and if it is not
enough let me know .
https://gist.github.com/nwoow/62f45077f340eb8ffe0b
On Friday, July 31, 2015 at 11:53:50 PM UTC+5:30, Elizabeth McGurty wrote:
>
> I would add that we also need to see the Message and User Models, eg,
I am attaching the schema a full schema of my code there are three
tables involved first one is messages and other one users and next one
is message_replies these three table he I am trying to get the result of
all messages using case and when query . I am attaching a link for
schema :
https://gis
I would add that we also need to see the Message and User Models, eg,
managing primary key outside of Rails convention.
Liz
On Friday, July 31, 2015 at 2:14:42 PM UTC-4, Urubatan wrote:
>
> the query is possible
>
> you need to show us your schema for a better answer (or at least the
> parts of
I am attaching the schema a full schema of my code there are three
tables involved first one is messages and other one users and next one
is message_replies these three table he I am trying to get the result of
all messages using case and when query . I am attaching a link for
schema :
https://gis
Actually, you can probably stuff the condition into the "joins" of the AREL.
But there is NO POINT. You have a working solution to using a very non-standard
join, trying to split it up into pieces in order to force it into AREL
accomplishes nothing. So like I said previously, fix the schema, or
On Jul 31, 2015, at 12:09 PM, Nilay Singh wrote:
>
> Fixing a schema is other thing this very straight forward question how
> can I generate the query which I am using in find_by_sql or is there any
> mechanism where I can select two tables without join and use the case
> and when . Or can you te
the query is possible
you need to show us your schema for a better answer (or at least the
parts of the schema that are involved in the question)
and I'm having problems understanding what you write, there are no
commas, no points, no new lines, ...
Rodrigo Urubatan Ferreira Jardim
Architect, Dev
Fixing a schema is other thing this very straight forward question how
can I generate the query which I am using in find_by_sql or is there any
mechanism where I can select two tables without join and use the case
and when . Or can you tell me how to right exact query where I can get
the result lik
On Jul 31, 2015, at 11:43 AM, Nilay Singh wrote:
>
> SO here is the code which I have tried in active record style :
I'm pretty sure this is different than what you posted last time.
And you might try giving a real answer to Elizabeth's question--that looks
suspiciously like a bad schema desig
Hi Urubatan My find_by_sql query works perfect but when I am using it as
active relation case and when and then is not working properly it is only
giving me one result .
On Friday, July 31, 2015 at 10:37:47 PM UTC+5:30, Urubatan wrote:
>
> There is something wrong with your query, your case sta
Is there anyone who can suggest me the solution for a Find_by_sql query
here when I am using mysql that work perfect . But when I converted that
into active record It is not showing the exact result . First I have
tried this code below using find_by_sql:
@message3 = Message.find_by_sql(["SELEC
On Jul 31, 2015, at 11:35 AM, nila1...@gmail.com wrote:
>
> Hi Urubatan My find_by_sql query works perfect but when I am using it as
> active relation case and when and then is not working properly it is only
> giving me one result .
In one case, your case when is in the select clause, whi
The table structure of the message table had these fileds m_id as primary
key and user_one and user_two and created at and updated at these are the
fields in my Table When I am using find_by_sql it work perfect but when I
am using active record only then I am getting the problem I need a proper
There is something wrong with your query, your case statement is changing
values in a select?
AFAIK it should not be working in mysql either
Em sex, 31 de jul de 2015 às 13:33, Elizabeth McGurty
escreveu:
> Message fields user_one and user_two concern me. Before I respond to your
> question, wo
Message fields user_one and user_two concern me. Before I respond to your
question, would you mind sharing the structure of your message and user
tables?
Thanks, Liz
On Friday, July 31, 2015 at 1:53:08 AM UTC-4, nilayy...@gmail.com wrote:
>
> I have a very simple question how can I convert mysq
Does it make sense to not have this hidden_field in the form but instead
add this info inside the controller while saving the object? For instance:
Response.new(response_params)
def response_params
params.require(:response).permit(:response_text).merge(user_id:
current_user.id)
end
On Fri, Ju
On 30 July 2015 at 23:06, Scott Goci wrote:
> At the end of my email, I do just that -- you notice that in the params I
> suggest, there is no user_id present, and instead I break apart the params
> and inject the user_id more manually, but breaking out the params seems
> messy to validate against
31 matches
Mail list logo